public CircularBufferPageCache(int pageCapacity)
 {
     _partitionIds = new ConcurrentDictionary<string, int>();
      _pages = new IndexedCircularBuffer<PartitionPageKey, IPageCacheItem>(pageCapacity);   
 }
Exemplo n.º 2
0
 public NodeCache(int internalNodeCapacity, int leafNodeCapacity)
 {
     _leafNodeCache     = new IndexedCircularBuffer <ulong, WeakReference>(leafNodeCapacity);
     _internalNodeCache = new IndexedCircularBuffer <ulong, IInternalNode>(internalNodeCapacity);
 }
Exemplo n.º 3
0
 public CircularBufferPageCache(int pageCapacity)
 {
     _partitionIds = new ConcurrentDictionary <string, int>();
     _pages        = new IndexedCircularBuffer <PartitionPageKey, IPageCacheItem>(pageCapacity);
 }
Exemplo n.º 4
0
 public NodeCache(int internalNodeCapacity, int leafNodeCapacity)
 {
     _leafNodeCache = new IndexedCircularBuffer<ulong, WeakReference>(leafNodeCapacity);
     _internalNodeCache = new IndexedCircularBuffer<ulong, IInternalNode>(internalNodeCapacity);
 }