| 250 | } |
| 251 | |
| 252 | Cache::Handle* LRUCache::Lookup(const Slice& key, uint32_t hash) { |
| 253 | MutexLock l(&mutex_); |
| 254 | LRUHandle* e = table_.Lookup(key, hash); |
| 255 | if (e != nullptr) { |
| 256 | Ref(e); |
| 257 | } |
| 258 | return reinterpret_cast<Cache::Handle*>(e); |
| 259 | } |
| 260 | |
| 261 | void LRUCache::Release(Cache::Handle* handle) { |
| 262 | MutexLock l(&mutex_); |
no outgoing calls
no test coverage detected