From f5bf5ca7b51e7c77e4d12056dfcc901302c31bd5 Mon Sep 17 00:00:00 2001 From: Federico Guerinoni <41150432+guerinoni@users.noreply.github.com> Date: Wed, 16 Nov 2022 15:48:23 +0100 Subject: [PATCH] Add doc for `set_cache_index_and_filter_blocks` (#699) --- src/db_options.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db_options.rs b/src/db_options.rs index eea4ade..158f9f4 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -635,6 +635,9 @@ impl BlockBasedOptions { } } + /// If cache_index_and_filter_blocks is enabled, cache index and filter blocks with high priority. + /// If set to true, depending on implementation of block cache, + /// index and filter blocks may be less likely to be evicted than data blocks. pub fn set_cache_index_and_filter_blocks(&mut self, v: bool) { unsafe { ffi::rocksdb_block_based_options_set_cache_index_and_filter_blocks(