protected AbstractCacheState(IEvictingCache <TKey, TValue> owner, int capacity)
     : base(capacity)
 {
     if ((Capacity = capacity) < 0)
     {
         throw new ArgumentOutOfRangeException("capacity", "must be greater than or equal zero");
     }
     if (owner == null)
     {
         throw new ArgumentNullException("owner", "cannot be null");
     }
     Source = owner.Parent;
     Policy = owner.Policy;
 }
예제 #2
0
 public FifoCacheEviction(IEvictingCache <TKey, TValue> owner, int capacity)
     : base(owner, capacity)
 {
 }
예제 #3
0
 protected CacheEvictionBase(IEvictingCache <TKey, TValue> owner, int capacity)
     : base(owner, capacity)
 {
 }
예제 #4
0
 protected AbstractCacheEviction(IEvictingCache <TKey, TValue> owner, int capacity)
     : base(owner, capacity)
 {
     Evictables = CreateEvictableCollection();
 }