Struct rocksdb::Cache [−][src]
pub struct Cache(_);
Implementations
impl Cache
[src]
impl Cache
[src]pub fn new_lru_cache(capacity: size_t) -> Result<Cache, Error>
[src]
Create a lru cache with capacity
pub fn get_usage(&self) -> usize
[src]
Returns the Cache memory usage
pub fn get_pinned_usage(&self) -> usize
[src]
Returns pinned memory usage
pub fn set_capacity(&mut self, capacity: size_t)
[src]
Sets cache capacity