Exemple #1
0
        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());
        }
Exemple #2
0
 public BinarySerializerCacheManager(CachePolicyConfiguration policyConf)
 {
     Init();
 }