Struct kv_cab::KV
[−]
[src]
pub struct KV<V> { /* fields omitted */ }
Methods
impl<V: Clone + Encodable + Decodable> KV<V>
[src]
fn new(p: &'static str) -> KV<V>
create a new instance of the KV store
fn insert(&mut self, key: String, value: V) -> Result<bool, &str>
insert a key, value pair into the KV Store
fn get(&mut self, key: String) -> Option<V>
get a value from a key
fn remove(&mut self, key: String) -> Result<bool, &str>
remove a key and associated value from the KV Store
fn keys(&mut self) -> Vec<String>
get all the keys contained in the KV Store