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

Vote:
 

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:
 

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:
 

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:
 

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