Exemplo n.º 1
0
 /// <summary>
 /// Create a new cache with a fixed size capacity.  This implementation
 /// of Cache uses a LRU eviction policy.
 /// </summary>
 public Cache(int capacity)
 {
     Handle = LevelDBInterop.leveldb_cache_create_lru((IntPtr)capacity);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new cache with a fixed size capacity.  This implementation
 /// of Cache uses a LRU eviction policy.
 /// </summary>
 public Cache(Int32 capacity)
 {
     this.Handle = LevelDBInterop.leveldb_cache_create_lru((IntPtr)capacity);
 }