Merge pull request #188 from ekmartin/disable_cache

Add disable_cache method to BlockBasedOptions
master
Tyler Neely 6 years ago committed by GitHub
commit 4fc0de7796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/db_options.rs

@ -72,6 +72,12 @@ impl BlockBasedOptions {
}
}
pub fn disable_cache(&mut self) {
unsafe {
ffi::rocksdb_block_based_options_set_no_block_cache(self.inner, true as c_uchar);
}
}
pub fn set_bloom_filter(&mut self, bits_per_key: c_int, block_based: bool) {
unsafe {
let bloom = if block_based {

Loading…
Cancel
Save