Home
last modified time | relevance | path

Searched refs:LRUCache (Results 1 – 16 of 16) sorted by relevance

/rocksdb-6.9/java/src/main/java/org/rocksdb/
DLRUCache.java11 public class LRUCache extends Cache { class
18 public LRUCache(final long capacity) { in LRUCache() method in LRUCache
33 public LRUCache(final long capacity, final int numShardBits) { in LRUCache() method in LRUCache
50 public LRUCache(final long capacity, final int numShardBits, in LRUCache() method in LRUCache
72 public LRUCache(final long capacity, final int numShardBits, in LRUCache() method in LRUCache
/rocksdb-6.9/cache/
Dlru_cache.cc466 LRUCache::LRUCache(size_t capacity, int num_shard_bits, in LRUCache() function in ROCKSDB_NAMESPACE::LRUCache
484 LRUCache::~LRUCache() { in ~LRUCache()
494 CacheShard* LRUCache::GetShard(int shard) { in GetShard()
498 const CacheShard* LRUCache::GetShard(int shard) const { in GetShard()
502 void* LRUCache::Value(Handle* handle) { in Value()
506 size_t LRUCache::GetCharge(Handle* handle) const { in GetCharge()
510 uint32_t LRUCache::GetHash(Handle* handle) const { in GetHash()
514 void LRUCache::DisownData() { in DisownData()
529 size_t LRUCache::TEST_GetLRUSize() { in TEST_GetLRUSize()
537 double LRUCache::GetHighPriPoolRatio() { in GetHighPriPoolRatio()
[all …]
Dlru_cache.h308 class LRUCache
314 LRUCache(size_t capacity, int num_shard_bits, bool strict_capacity_limit,
320 virtual ~LRUCache();
/rocksdb-6.9/java/src/test/java/org/rocksdb/
DMemoryUtilTest.java39 try (final Cache cache = new LRUCache(8 * 1024 * 1024); in getApproximateMemoryUsageByType()
100 try (final Cache cache1 = new LRUCache(1 * 1024 * 1024); in getApproximateMemoryUsageByTypeMultiple()
107 final Cache cache2 = new LRUCache(1 * 1024 * 1024); in getApproximateMemoryUsageByTypeMultiple()
DBlockBasedTableConfigTest.java105 final Cache cache = new LRUCache(17 * 1024 * 1024); in blockCache()
114 try (final Cache cache = new LRUCache(8 * 1024 * 1024); in blockCacheIntegration()
159 try (final Cache cache = new LRUCache(17 * 1024 * 1024); in blockCacheCompressed()
175 try (final Cache compressedCache = new LRUCache(8 * 1024 * 1024); in blockCacheCompressedIntegration()
DLRUCacheTest.java22 try(final Cache lruCache = new LRUCache(capacity, in newLRUCache()
DDBOptionsTest.java451 final Cache cache = new LRUCache(1 * 1024 * 1024); in setWriteBufferManager()
461 final Cache cache = new LRUCache(1 * 1024 * 1024); in setWriteBufferManagerWithZeroBufferSize()
654 try(final Cache lruCache = new LRUCache(1000)) { in rowCache()
DOptionsTest.java670 final Cache cache = new LRUCache(1 * 1024 * 1024); in setWriteBufferManager()
680 final Cache cache = new LRUCache(1 * 1024 * 1024); in setWriteBufferManagerWithZeroBufferSize()
873 try(final Cache lruCache = new LRUCache(1000)) { in rowCache()
/rocksdb-6.9/options/
Doptions_test.cc604 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>( in TEST_F()
611 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>( in TEST_F()
628 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache) in TEST_F()
639 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache_compressed) in TEST_F()
654 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>( in TEST_F()
661 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache_compressed) in TEST_F()
677 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache) in TEST_F()
685 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache_compressed) in TEST_F()
/rocksdb-6.9/db/
Ddb_block_cache_test.cc436 class MockCache : public LRUCache {
442 : LRUCache((size_t)1 << 25 /*capacity*/, 0 /*num_shard_bits*/, in MockCache()
453 return LRUCache::Insert(key, value, charge, deleter, handle, priority); in Insert()
Ddb_test.cc6338 reinterpret_cast<LRUCache*>(options.row_cache.get())->TEST_GetLRUSize(), in TEST_F()
6347 reinterpret_cast<LRUCache*>(options.row_cache.get())->TEST_GetLRUSize(), in TEST_F()
6352 reinterpret_cast<LRUCache*>(options.row_cache.get())->TEST_GetLRUSize(), in TEST_F()
/rocksdb-6.9/tools/block_cache_analyzer/
Dblock_cache_pysim_test.py16 LRUCache,
691 test_lru_cache(LRUCache(3, enable_cache_row_key=0), custom_hashtable=False)
Dblock_cache_pysim.py1456 class LRUCache(Cache): class
1462 super(LRUCache, self).__init__(cache_size, enable_cache_row_key)
1626 return LRUCache(cache_size, enable_cache_row_key)
/rocksdb-6.9/java/
DCMakeLists.txt155 src/main/java/org/rocksdb/LRUCache.java
421 org.rocksdb.LRUCache
DMakefile39 org.rocksdb.LRUCache\
/rocksdb-6.9/
DHISTORY.md427 * With LRUCache, when high_pri_pool_ratio > 0, midpoint insertion strategy will be enabled to put l…