Discussion on CacheFabric - Dynamic Swappable Caching Framework

AvantPrime

AvantPrime supports this item

Supported

This author's response time can be up to 1 business day.

6 comments found.

Thanks for this component. Great code and comments – works like a treat :)! BTW I am following you for any new stuff you have coming out.

Thanks. Glad you like it. Hopefully should have some new stuff out shortly.

there is no dll like “AvantPrime.Framework.Caching;” only “AvantPrime.Caching;” in the pack and when I use “static readonly ICacheDirector Cache = new SingleServerCaching(CacheManager);”

it fails and error “Generate class for SingleServerCaching”

if i use “static readonly ICacheDirector Cache = new AvantPrime.CacheFabric.AspNetCache()”;

web.config fails “Unrecognized configuration section configsections.”

Line 25: <configsections> Line 26: <section name=”cachingConfiguration” requirepermission=”true” type=”Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”>

I have submitted the updated assemblies + XML help + Demo Project. This should be approved within the next 24hrs hopefully.

Thanks for your quick reply.. your solution is very useful.. so thanks…

You are very welcome. Much appreciated! If you need any assistance please don’t hesitate to ask.

Hello,

When i try to run the WebForms demo from VS2012 (view in browser) i get an error: Could not load type ‘Demo.TestWebForm.Global’. <%@ Application Codebehind=”Global.asax.cs” Inherits=”Demo.TestWebForm.Global” Language=”C#” %>

I am not an expert on VS and i just want to use your code on a single ASP.NET website. What do i need to change/add (config/dll’s/scripts etc etc) in my existing website to make this work? CacheFabric for dummies, so too say :-)

Appreciate any help/assistance

Thx

Marcellino

P.S. don’t know how extended the support is, but i have a demo website where the ASP.NET CMS is running and i could supply FTP access…

Do i need to add all the packages into VS before running this? I haven’t done this.

There should be an assemblies folder which sits beside the “solution demo” folder.

/assemblies
/solution demo

You should not have to do anything else but ensure that your folder structure is like the above.

I just realized that another problem you may be having is that you may need to right click on the downloaded zip file > properties > unblock. Windows Vista, 7 & 8 would sometimes interfere with the workings of active content downloaded from the web – in this case downloaded from codecanyon.

Hi, I need some help to get started. I need only to write section in webconfig and add dll to \bin of my webapplication or I have to do something else?

If I have a soap webservice application could be useful or not ? thanks

Hi Giorgiorusso,

Firstly the answer is yes. Caching can be useful for many applications including SOAP web services.

There are several steps to getting started with CacheFabric.

1. Determine which caching solution you wish to use. ASP.NET Cache (web applications only), Enterprise Library or AppFabric. I get started very quickly for web applications simply use ASP.NET Cache.

_cacheDirector = new AspNetCache();

This will enable you to get up and running quickly and later you can simply switching to Enterprise Library.

2. When setting up Enterprise Library you will need to add the web.config entries, reference the enterprise library assemblies (not just put them in the bin) or simply get them through nuget by searching for “Enterprise Library Caching”.

static readonly ICacheManager CacheManager = Microsoft.Practices.EnterpriseLibrary.Caching.CacheFactory.GetCacheManager(); static readonly ICacheDirector Cache = new EnterpriseLibraryCache(CacheManager);

3. Using AppFabric Server would require a deeper understanding of setting up the AppFabric caching server and is recommended for people skilled in this area.

Hope this helps.

why source code removed?

Hi yurtnet,

The source code is now available only on www.avantprime.com since we are not an exclusive CodeCanyon seller. If you purchased the products however when the source code was available please contact us by sending an email through CodeCanyon and we will be happy to send it to you.

Thanks

I bought. To communicate via the CodeCanyon, what should I do?

I sent it to your email address. You will need to restore the nuget packages. This should probably be done by VS automatically.

by
by
by
by
by
by