Skip to content

Commit

Permalink
Add doc for set_cache_index_and_filter_blocks (rust-rocksdb#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
guerinoni authored Nov 16, 2022
1 parent 83eea97 commit f5bf5ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/db_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f5bf5ca

Please sign in to comment.