示例#1
0
 public ExclusiveItemStore(IItemFactory <TItem, TBorrowerId> factory, int timeout, int maxCacheSize) : base(factory, timeout)
 {
     this.borrowersDictionary = new DictionaryCache <TBorrowerId, ExclusiveItemStore <TItem, TBorrowerId> .BorrowerAccount>(0x7fffffff);
     base.RegisterCache(this.borrowersDictionary);
     this.borrowerAccountMaxCacheSize = maxCacheSize;
 }
示例#2
0
 public SharedItemStore(IItemFactory <TItem, TBorrowerId> factory, int timeout, int cacheSize) : base(factory, timeout)
 {
     this.cache = new DictionaryCache <string, TItem>(cacheSize);
     base.RegisterCache(this.cache);
 }