Searched refs:cache (Results 1 – 9 of 9) sorted by relevance
27 Cache* cache = reinterpret_cast<Cache*>(arg1); in UnrefEntry() local29 cache->Release(h); in UnrefEntry()
160 leveldb_cache_t* cache; in main() local179 cache = leveldb_cache_create_lru(100000); in main()184 leveldb_options_set_cache(options, cache); in main()384 leveldb_cache_destroy(cache); in main()
566 void leveldb_cache_destroy(leveldb_cache_t* cache) { in leveldb_cache_destroy() argument567 delete cache->rep; in leveldb_cache_destroy()568 delete cache; in leveldb_cache_destroy()
216 TableCache* cache = reinterpret_cast<TableCache*>(arg); in GetFileIterator() local221 return cache->NewIterator(options, in GetFileIterator()
157 Cache* cache = reinterpret_cast<Cache*>(arg); in ReleaseBlock() local159 cache->Release(handle); in ReleaseBlock()
341 each file stores a sequence of compressed blocks. If options.cache is non-NULL,342 it is used to cache frequently used uncompressed block contents.345 #include "leveldb/cache.h"348 options.cache = leveldb::NewLRUCache(100 * 1048576); // 100MB cache353 delete options.cache;356 Note that the cache holds uncompressed data, and therefore it should be sized359 buffer cache, or any custom Env implementation provided by the client.)390 the metadata do not force us to fetch and cache bulky file contents.
134 the level-0 files will have their blocks sitting uncompressed in the cache and
264 extern void leveldb_cache_destroy(leveldb_cache_t* cache);
86 cache for a while. The "overwrite" benchmark does random writes that111 is not present in the operating system buffer cache will be dominated130 read from disk. If we supply enough cache to the leveldb so it can hold the