Implementation of the EvictionCallback interface.
| 76 | |
| 77 | // Implementation of the EvictionCallback interface. |
| 78 | void EvictedEntry(Slice key, Slice val) override { |
| 79 | evicted_keys_.push_back(DecodeInt(key)); |
| 80 | evicted_values_.push_back(DecodeInt(val)); |
| 81 | } |
| 82 | |
| 83 | int Lookup(int key) { |
| 84 | auto handle(cache_->Lookup(EncodeInt(key), Cache::EXPECT_IN_CACHE)); |