London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Episerver 6 use the 'System.Runtime.Caching' ?

Vote:
0

Hi,

Does Episerver 6 use the .NET 4.0 'System.Runtime.Caching' for its caching of pagedata?

Somebody has more information?

Greetings

 

#44233
Oct 06, 2010 16:06
Vote:
0

No, since .NET 4 is not a requirement for CMS 6. It uses System.Web.Caching.Cache. I think however that it is possible to create your own implementation of the EPiServer.BaseLibrary.IRuntimeCache interface to change this behaviour.

#44242
Oct 07, 2010 9:21
Vote:
0

Thanks! Based on the documentation you provided the provider seems to be customizable.

The class EPiServer.CacheManager has been expanded with a RuntimeCache property to allow developers to access an instance of the runtime cache. In addition, the following static helper functions have been added to this class

 

 

#44374
Edited, Oct 11, 2010 12:53
Vote:
0

This blog post (which is actually about something else) by Ted shows how you can use the ClassFactory class to register your own implementation of the IRuntimeCache: http://tedgustaf.com/en/blog/2010/8/unit-test-an-episerver-6-website-using-visual-studio-2010-and-mstest/

#44377
Oct 11, 2010 13:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.