Aspectacular.CacheFactory.CreateCacheProvider C# (CSharp) Method

CreateCacheProvider() public static method

Augments .NET Framework ObjectCache and its descendants into Aspectacular-friendly cache provider compatible with the CacheAspect.
public static CreateCacheProvider ( this cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : ObjectCacheFacade
cache this
cachePolicyTemplate System.Runtime.Caching.CacheItemPolicy .NET Framework object driving cached item expiration.
regionName string
return ObjectCacheFacade
        public static ObjectCacheFacade CreateCacheProvider(this ObjectCache cache, CacheItemPolicy cachePolicyTemplate, string regionName = null)
        {
            var ocp = new ObjectCacheFacade(cache, cachePolicyTemplate, regionName);
            return ocp;
        }