Lines Matching refs:block_cache
395 Cache* block_cache, const Slice& key, BlockType block_type, in GetEntryFromCache() argument
397 auto cache_handle = block_cache->Lookup(key, rep_->ioptions.statistics); in GetEntryFromCache()
401 block_cache->GetUsage(cache_handle)); in GetEntryFromCache()
414 if (rep->table_options.block_cache != nullptr) { in SetupCacheKeyPrefix()
415 GenerateCachePrefix(rep->table_options.block_cache.get(), rep->file->file(), in SetupCacheKeyPrefix()
1093 Cache* block_cache, Cache* block_cache_compressed, in GetDataBlockFromCache() argument
1109 if (block_cache != nullptr) { in GetDataBlockFromCache()
1110 auto cache_handle = GetEntryFromCache(block_cache, block_cache_key, in GetDataBlockFromCache()
1114 reinterpret_cast<TBlocklike*>(block_cache->Value(cache_handle)), in GetDataBlockFromCache()
1115 block_cache, cache_handle); in GetDataBlockFromCache()
1164 if (block_cache != nullptr && block_holder->own_bytes() && in GetDataBlockFromCache()
1168 s = block_cache->Insert(block_cache_key, block_holder.get(), charge, in GetDataBlockFromCache()
1173 block->SetCachedValue(block_holder.release(), block_cache, in GetDataBlockFromCache()
1193 Cache* block_cache, Cache* block_cache_compressed, in PutDataBlockToCache() argument
1270 if (block_cache != nullptr && block_holder->own_bytes()) { in PutDataBlockToCache()
1273 s = block_cache->Insert(block_cache_key, block_holder.get(), charge, in PutDataBlockToCache()
1278 cached_block->SetCachedValue(block_holder.release(), block_cache, in PutDataBlockToCache()
1378 Cache* block_cache = rep_->table_options.block_cache.get(); in MaybeReadBlockAndLoadToCache() local
1393 if (block_cache != nullptr || block_cache_compressed != nullptr) { in MaybeReadBlockAndLoadToCache()
1395 if (block_cache != nullptr) { in MaybeReadBlockAndLoadToCache()
1407 s = GetDataBlockFromCache(key, ckey, block_cache, block_cache_compressed, in MaybeReadBlockAndLoadToCache()
1448 key, ckey, block_cache, block_cache_compressed, block_entry, in MaybeReadBlockAndLoadToCache()
2532 Cache* block_cache = rep_->table_options.block_cache.get(); in MultiGet() local
2534 block_cache->Ref(biter->cache_handle()); in MultiGet()
2535 dummy.RegisterCleanup(&ReleaseCachedEntry, block_cache, in MultiGet()
2805 Cache* const cache = rep_->table_options.block_cache.get(); in TEST_BlockInCache()