Lines Matching refs:ClockCacheShard
261 class ClockCacheShard final : public CacheShard { class
266 ClockCacheShard();
267 ~ClockCacheShard() override;
383 ClockCacheShard::ClockCacheShard() in ClockCacheShard() function in ROCKSDB_NAMESPACE::__anon9da5ff120111::ClockCacheShard
386 ClockCacheShard::~ClockCacheShard() { in ~ClockCacheShard()
398 size_t ClockCacheShard::GetUsage() const { in GetUsage()
402 size_t ClockCacheShard::GetPinnedUsage() const { in GetPinnedUsage()
406 void ClockCacheShard::ApplyToAllCacheEntries(void (*callback)(void*, size_t), in ApplyToAllCacheEntries()
424 void ClockCacheShard::RecycleHandle(CacheHandle* handle, in RecycleHandle()
438 void ClockCacheShard::Cleanup(const CleanupContext& context) { in Cleanup()
449 bool ClockCacheShard::Ref(Cache::Handle* h) { in Ref()
470 bool ClockCacheShard::Unref(CacheHandle* handle, bool set_usage, in Unref()
493 bool ClockCacheShard::UnsetInCache(CacheHandle* handle, in UnsetInCache()
508 bool ClockCacheShard::TryEvict(CacheHandle* handle, CleanupContext* context) { in TryEvict()
523 bool ClockCacheShard::EvictFromCache(size_t charge, CleanupContext* context) { in EvictFromCache()
549 void ClockCacheShard::SetCapacity(size_t capacity) { in SetCapacity()
559 void ClockCacheShard::SetStrictCapacityLimit(bool strict_capacity_limit) { in SetStrictCapacityLimit()
564 CacheHandle* ClockCacheShard::Insert(const Slice& key, uint32_t hash, in Insert()
612 Status ClockCacheShard::Insert(const Slice& key, uint32_t hash, void* value, in Insert()
635 Cache::Handle* ClockCacheShard::Lookup(const Slice& key, uint32_t hash) { in Lookup()
660 bool ClockCacheShard::Release(Cache::Handle* h, bool force_erase) { in Release()
671 void ClockCacheShard::Erase(const Slice& key, uint32_t hash) { in Erase()
677 bool ClockCacheShard::EraseAndConfirm(const Slice& key, uint32_t hash, in EraseAndConfirm()
690 void ClockCacheShard::EraseUnRefEntries() { in EraseUnRefEntries()
708 shards_ = new ClockCacheShard[num_shards]; in ClockCache()
743 ClockCacheShard* shards_;