Lines Matching refs:ShardedCache
18 ShardedCache::ShardedCache(size_t capacity, int num_shard_bits, in ShardedCache() function in ROCKSDB_NAMESPACE::ShardedCache
27 void ShardedCache::SetCapacity(size_t capacity) { in SetCapacity()
37 void ShardedCache::SetStrictCapacityLimit(bool strict_capacity_limit) { in SetStrictCapacityLimit()
46 Status ShardedCache::Insert(const Slice& key, void* value, size_t charge, in Insert()
54 Cache::Handle* ShardedCache::Lookup(const Slice& key, Statistics* /*stats*/) { in Lookup()
59 bool ShardedCache::Ref(Handle* handle) { in Ref()
64 bool ShardedCache::Release(Handle* handle, bool force_erase) { in Release()
69 void ShardedCache::Erase(const Slice& key) { in Erase()
74 uint64_t ShardedCache::NewId() { in NewId()
78 size_t ShardedCache::GetCapacity() const { in GetCapacity()
83 bool ShardedCache::HasStrictCapacityLimit() const { in HasStrictCapacityLimit()
88 size_t ShardedCache::GetUsage() const { in GetUsage()
98 size_t ShardedCache::GetUsage(Handle* handle) const { in GetUsage()
102 size_t ShardedCache::GetPinnedUsage() const { in GetPinnedUsage()
112 void ShardedCache::ApplyToAllCacheEntries(void (*callback)(void*, size_t), in ApplyToAllCacheEntries()
120 void ShardedCache::EraseUnRefEntries() { in EraseUnRefEntries()
127 std::string ShardedCache::GetPrintableOptions() const { in GetPrintableOptions()