Пример #1
0
 public HybirdCache(string host, long?capacity, int expiration = 60)
 {
     _remote = new RemoteCache(host);
     _local  = new LightCache(capacity, expiration);
     Subscribe();
 }
Пример #2
0
 public QueryCache()
 {
     _parsedObjects = new LightCache <string, TDqlObject>();
 }
Пример #3
0
 public QueryCache(int size, int evictionPercentage)
 {
     _parsedObjects = new LightCache <string, TDqlObject>(size, evictionPercentage);
 }
Пример #4
0
 public CostBasedOptimizer(CollectionIndexManager indexManager)
 {
     _indexManager   = indexManager;
     _predicateCache = new LightCache <ITreePredicate, IPredicate>();
 }