Home
last modified time | relevance | path

Searched refs:ghost_cache (Results 1 – 3 of 3) sorted by relevance

/rocksdb-6.9/utilities/simulator_cache/
Dcache_simulator.cc30 CacheSimulator::CacheSimulator(std::unique_ptr<GhostCache>&& ghost_cache, in CacheSimulator() argument
32 : ghost_cache_(std::move(ghost_cache)), sim_cache_(sim_cache) {} in CacheSimulator()
206 std::unique_ptr<GhostCache> ghost_cache; in InitializeCaches() local
209 ghost_cache.reset(new GhostCache( in InitializeCaches()
217 std::move(ghost_cache), in InitializeCaches()
223 std::move(ghost_cache), in InitializeCaches()
229 std::move(ghost_cache), in InitializeCaches()
236 std::move(ghost_cache), in InitializeCaches()
Dcache_simulator_test.cc99 std::unique_ptr<GhostCache> ghost_cache(new GhostCache( in TEST_F() local
103 EXPECT_FALSE(ghost_cache->Admit(key1)); in TEST_F()
104 EXPECT_TRUE(ghost_cache->Admit(key1)); in TEST_F()
105 EXPECT_TRUE(ghost_cache->Admit(key1)); in TEST_F()
106 EXPECT_FALSE(ghost_cache->Admit(key2)); in TEST_F()
107 EXPECT_TRUE(ghost_cache->Admit(key2)); in TEST_F()
145 std::unique_ptr<GhostCache> ghost_cache(new GhostCache( in TEST_F() local
150 std::move(ghost_cache), in TEST_F()
181 std::unique_ptr<GhostCache> ghost_cache(new GhostCache( in TEST_F() local
187 std::move(ghost_cache), in TEST_F()
[all …]
Dcache_simulator.h104 CacheSimulator(std::unique_ptr<GhostCache>&& ghost_cache,
130 PrioritizedCacheSimulator(std::unique_ptr<GhostCache>&& ghost_cache, in PrioritizedCacheSimulator() argument
132 : CacheSimulator(std::move(ghost_cache), sim_cache) {} in PrioritizedCacheSimulator()
158 HybridRowBlockCacheSimulator(std::unique_ptr<GhostCache>&& ghost_cache, in HybridRowBlockCacheSimulator() argument
161 : PrioritizedCacheSimulator(std::move(ghost_cache), sim_cache), in HybridRowBlockCacheSimulator()