Searched refs:CacheKey (Results 1 – 1 of 1) sorted by relevance
| /rocksdb-6.9/cache/ |
| D | clock_cache.cc | 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() [all …]
|