internal CacheUsage(System.Runtime.Caching.MemoryCacheStore cacheStore)
 {
     this._cacheStore = cacheStore;
     this._buckets = new UsageBucket[1];
     for (byte i = 0; i < this._buckets.Length; i = (byte) (i + 1))
     {
         this._buckets[i] = new UsageBucket(this, i);
     }
 }
Example #2
0
 internal CacheUsage(System.Runtime.Caching.MemoryCacheStore cacheStore)
 {
     this._cacheStore = cacheStore;
     this._buckets    = new UsageBucket[1];
     for (byte i = 0; i < this._buckets.Length; i = (byte)(i + 1))
     {
         this._buckets[i] = new UsageBucket(this, i);
     }
 }
 internal CacheExpires(System.Runtime.Caching.MemoryCacheStore cacheStore)
 {
     DateTime utcNow = DateTime.UtcNow;
     this._cacheStore = cacheStore;
     this._buckets = new ExpiresBucket[30];
     for (byte i = 0; i < this._buckets.Length; i = (byte) (i + 1))
     {
         this._buckets[i] = new ExpiresBucket(this, i, utcNow);
     }
 }
Example #4
0
        internal CacheExpires(System.Runtime.Caching.MemoryCacheStore cacheStore)
        {
            DateTime utcNow = DateTime.UtcNow;

            this._cacheStore = cacheStore;
            this._buckets    = new ExpiresBucket[30];
            for (byte i = 0; i < this._buckets.Length; i = (byte)(i + 1))
            {
                this._buckets[i] = new ExpiresBucket(this, i, utcNow);
            }
        }