| 92 | } |
| 93 | |
| 94 | LRUHandle* Remove(const Slice& key, uint32_t hash) { |
| 95 | LRUHandle** ptr = FindPointer(key, hash); |
| 96 | LRUHandle* result = *ptr; |
| 97 | if (result != nullptr) { |
| 98 | *ptr = result->next_hash; |
| 99 | --elems_; |
| 100 | } |
| 101 | return result; |
| 102 | } |
| 103 | |
| 104 | private: |
| 105 | // The table consists of an array of buckets where each bucket is |
no outgoing calls