Lines Matching refs:Cache
16 std::shared_ptr<Cache> NewClockCache( in NewClockCache()
178 using Deleter = Cache::Deleter;
273 Deleter* deleter, Cache::Handle** handle,
274 Cache::Priority priority) override;
275 Cache::Handle* Lookup(const Slice& key, uint32_t hash) override;
280 bool Ref(Cache::Handle* handle) override;
281 bool Release(Cache::Handle* handle, bool force_erase = false) override;
449 bool ClockCacheShard::Ref(Cache::Handle* h) { in Ref()
614 Cache::Handle** out_handle, in Insert()
615 Cache::Priority /*priority*/) { in Insert()
628 *out_handle = reinterpret_cast<Cache::Handle*>(handle); in Insert()
635 Cache::Handle* ClockCacheShard::Lookup(const Slice& key, uint32_t hash) { in Lookup()
644 if (!Ref(reinterpret_cast<Cache::Handle*>(handle))) { in Lookup()
657 return reinterpret_cast<Cache::Handle*>(handle); in Lookup()
660 bool ClockCacheShard::Release(Cache::Handle* h, bool force_erase) { in Release()
748 std::shared_ptr<Cache> NewClockCache( in NewClockCache()