Home
last modified time | relevance | path

Searched refs:sim_cache_ (Results 1 – 2 of 2) sorted by relevance

/rocksdb-6.9/utilities/simulator_cache/
Dcache_simulator.cc17 : sim_cache_(sim_cache) {} in GhostCache()
20 auto handle = sim_cache_->Lookup(lookup_key); in Admit()
22 sim_cache_->Release(handle); in Admit()
25 sim_cache_->Insert(lookup_key, /*value=*/nullptr, lookup_key.size(), in Admit()
32 : ghost_cache_(std::move(ghost_cache)), sim_cache_(sim_cache) {} in CacheSimulator()
42 auto handle = sim_cache_->Lookup(access.block_key); in Access()
44 sim_cache_->Release(handle); in Access()
48 sim_cache_->Insert(access.block_key, /*value=*/nullptr, access.block_size, in Access()
98 auto handle = sim_cache_->Lookup(key); in AccessKVPair()
100 sim_cache_->Release(handle); in AccessKVPair()
[all …]
Dcache_simulator.h98 std::shared_ptr<Cache> sim_cache_;
122 std::shared_ptr<Cache> sim_cache_; variable