| 602 | } |
| 603 | |
| 604 | UniqueHandle Insert(UniquePendingHandle handle, |
| 605 | Cache::EvictionCallback* eviction_callback) override { |
| 606 | RLHandle* h = reinterpret_cast<RLHandle*>(DCHECK_NOTNULL(handle.release())); |
| 607 | return UniqueHandle( |
| 608 | shards_[Shard(h->hash)]->Insert(h, eviction_callback), |
| 609 | Cache::HandleDeleter(this)); |
| 610 | } |
| 611 | |
| 612 | UniquePendingHandle Allocate(Slice key, int val_len, int charge) override { |
| 613 | int key_len = key.size(); |
nothing calls this directly
no test coverage detected