Lines Matching refs:CacheKey
232 struct CacheKey { struct
236 CacheKey() = default;
238 CacheKey(const Slice& k, uint32_t h) { in CacheKey() argument
243 static bool equal(const CacheKey& a, const CacheKey& b) { in equal() argument
247 static size_t hash(const CacheKey& a) { in hash() argument
264 typedef tbb::concurrent_hash_map<CacheKey, CacheHandle*, CacheKey> HashTable;
514 table_.erase(CacheKey(handle->key, handle->hash)); in TryEvict()
599 if (table_.find(accessor, CacheKey(key, hash))) { in Insert()
604 table_.insert(HashTable::value_type(CacheKey(key, hash), handle)); in Insert()
637 if (!table_.find(accessor, CacheKey(key, hash))) { in Lookup()
682 if (table_.find(accessor, CacheKey(key, hash))) { in EraseAndConfirm()