Home
last modified time | relevance | path

Searched refs:Cache (Results 1 – 13 of 13) sorted by relevance

/leveldb-1.20/include/leveldb/
H A Dcache.h26 class Cache; variable
30 extern Cache* NewLRUCache(size_t capacity);
32 class Cache {
34 Cache() { } in Cache() function
38 virtual ~Cache();
104 Cache(const Cache&);
105 void operator=(const Cache&);
H A Doptions.h12 class Cache; variable
98 Cache* block_cache;
/leveldb-1.20/db/
H A Dtable_cache.cc27 Cache* cache = reinterpret_cast<Cache*>(arg1); in UnrefEntry()
28 Cache::Handle* h = reinterpret_cast<Cache::Handle*>(arg2); in UnrefEntry()
46 Cache::Handle** handle) { in FindTable()
90 Cache::Handle* handle = NULL; in NewIterator()
111 Cache::Handle* handle = NULL; in Get()
H A Dtable_cache.h54 Cache* cache_;
56 Status FindTable(uint64_t file_number, uint64_t file_size, Cache::Handle**);
H A Dautocompact_test.cc16 Cache* tiny_cache_;
H A Dc.cc19 using leveldb::Cache;
53 struct leveldb_cache_t { Cache* rep; };
H A Dcorruption_test.cc31 Cache* tiny_cache_;
H A Dfault_injection_test.cc366 Cache* tiny_cache_;
H A Ddb_bench.cc319 Cache* cache_;
/leveldb-1.20/util/
H A Dcache_test.cc38 Cache* cache_;
49 Cache::Handle* handle = cache_->Lookup(EncodeKey(key)); in Lookup()
62 Cache::Handle* InsertAndReturnHandle(int key, int value, int charge = 1) { in InsertAndReturnHandle()
117 Cache::Handle* h1 = cache_->Lookup(EncodeKey(100)); in TEST()
121 Cache::Handle* h2 = cache_->Lookup(EncodeKey(100)); in TEST()
144 Cache::Handle* h = cache_->Lookup(EncodeKey(300)); in TEST()
161 std::vector<Cache::Handle*> h; in TEST()
213 Cache::Handle* handle = cache_->Lookup(EncodeKey(1)); in TEST()
H A Dcache.cc16 Cache::~Cache() { in ~Cache()
162 Cache::Handle* Insert(const Slice& key, uint32_t hash,
165 Cache::Handle* Lookup(const Slice& key, uint32_t hash);
166 void Release(Cache::Handle* handle);
255 Cache::Handle* LRUCache::Lookup(const Slice& key, uint32_t hash) { in Lookup()
261 return reinterpret_cast<Cache::Handle*>(e); in Lookup()
264 void LRUCache::Release(Cache::Handle* handle) { in Release()
269 Cache::Handle* LRUCache::Insert( in Insert()
302 return reinterpret_cast<Cache::Handle*>(e); in Insert()
338 class ShardedLRUCache : public Cache {
[all …]
/leveldb-1.20/table/
H A Dtable.cc157 Cache* cache = reinterpret_cast<Cache*>(arg); in ReleaseBlock()
158 Cache::Handle* handle = reinterpret_cast<Cache::Handle*>(h); in ReleaseBlock()
168 Cache* block_cache = table->rep_->options.block_cache; in BlockReader()
170 Cache::Handle* cache_handle = NULL; in BlockReader()
/leveldb-1.20/doc/
H A Dindex.md338 ### Cache subsection