Centralized object for handling cache expiration with support for web farms.
Namespace:
EPiServerAssembly: EPiServer (in EPiServer.dll) Version: 6.0.530.0
Syntax
| C# |
|---|
public static class CacheManager |
Remarks
If you need to expire a custom cached item you should call the Remove method instead of calling the .NET methods. This will ensure that your application will operate correctly in a load-balanced environment. There are also some helper methods to add items to the cache.
Note! CacheManager does not have its own internal cache, it will operate against the global ASP.NET Cache class.