| 196 | ~BlockBasedCacheTest() { delete cache_; } |
| 197 | |
| 198 | int Lookup(int key) { |
| 199 | Cache::Handle* handle = cache_->Lookup(EncodeKey(key)); |
| 200 | const int r = (handle == NULL) ? -1 : DecodeValue(cache_->Value(handle)); |
| 201 | if (handle != NULL) { |
| 202 | cache_->Release(handle); |
| 203 | } |
| 204 | return r; |
| 205 | } |
| 206 | |
| 207 | void Insert(int key, int value, bool force_release = true) { |
| 208 | Cache::Handle* handle = cache_->Insert(EncodeKey(key), EncodeValue(value), 0xffffffffffffffff, |
nothing calls this directly
no test coverage detected