diff options
author | cmumford <cmumford@google.com> | 2018-05-21 13:53:36 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2018-06-04 16:14:34 -0700 |
commit | 6a6bdafcf10f5d4bef1ca52697c38d10c28b1a8b (patch) | |
tree | 9e8074e414e49fc4bc0d86729c0439b4a2993c94 | |
parent | 18683981505dc374ce29211c80a9552f8f2f4571 (diff) | |
download | leveldb-6a6bdafcf10f5d4bef1ca52697c38d10c28b1a8b.tar.gz |
Corrected typo in docs: "cache" to "block_cache".
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=197452015
-rw-r--r-- | doc/index.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/index.md b/doc/index.md index be85696..ea4609d 100644 --- a/doc/index.md +++ b/doc/index.md @@ -338,19 +338,19 @@ options.compression = leveldb::kNoCompression; ### Cache The contents of the database are stored in a set of files in the filesystem and -each file stores a sequence of compressed blocks. If options.cache is non-NULL, -it is used to cache frequently used uncompressed block contents. +each file stores a sequence of compressed blocks. If options.block_cache is +non-NULL, it is used to cache frequently used uncompressed block contents. ```c++ #include "leveldb/cache.h" leveldb::Options options; -options.cache = leveldb::NewLRUCache(100 * 1048576); // 100MB cache +options.block_cache = leveldb::NewLRUCache(100 * 1048576); // 100MB cache leveldb::DB* db; leveldb::DB::Open(options, name, &db); ... use the db ... delete db -delete options.cache; +delete options.block_cache; ``` Note that the cache holds uncompressed data, and therefore it should be sized |