pub trait Store {
// Required methods
fn get(&self, key: &[u8]) -> Option<Vec<u8>>;
fn insert(&mut self, key: &[u8], value: &[u8]);
fn remove(&mut self, key: &[u8]);
}
Expand description
Key/value store trait.
pub trait Store {
// Required methods
fn get(&self, key: &[u8]) -> Option<Vec<u8>>;
fn insert(&mut self, key: &[u8], value: &[u8]);
fn remove(&mut self, key: &[u8]);
}
Key/value store trait.