| 304 | } |
| 305 | |
| 306 | UniqueHandle Insert(UniquePendingHandle handle, |
| 307 | Cache::EvictionCallback* eviction_callback) override { |
| 308 | HandleBase* h_in = reinterpret_cast<HandleBase*>(DCHECK_NOTNULL(handle.release())); |
| 309 | HandleBase* h_out = shards_[Shard(h_in->hash())]->Insert(h_in, eviction_callback); |
| 310 | return UniqueHandle(reinterpret_cast<Cache::Handle*>(h_out), |
| 311 | Cache::HandleDeleter(this)); |
| 312 | } |
| 313 | |
| 314 | size_t MaxCharge() const override { |
| 315 | return shard_charge_limit_; |
nothing calls this directly
no test coverage detected