public FileCacheManager(CachePolicyConfiguration policyConf) { propertiesMemoryCache = new NameValueCollection(); _name = policyConf.Name; _defaultLifetime = policyConf.DefaultLifeTime; propertiesMemoryCache.Add("CacheMemoryLimitMegabytes", policyConf.CacheMemoryLimitMegabytes.ToString()); propertiesMemoryCache.Add("PhysicalMemoryLimitPercentage", policyConf.PhysicalMemoryLimitPercentage.ToString()); propertiesMemoryCache.Add("PollingInterval", policyConf.PollingInterval.ToString()); _innerCache = new FileCache(new ObjectBinder()); }
public BinarySerializerCacheManager(CachePolicyConfiguration policyConf) { Init(); }