Add disable_cache method

master
Martin Ek 7 years ago
parent 701669d076
commit e08ad288c4
  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