Trait persistentcache::PersistentCache
[−]
[src]
pub trait PersistentCache {
fn get(&self, _: &str) -> Result<Vec<u8>, Box<Error>>;
fn set(&self, _: &str, _: &[u8]) -> Result<(), Box<Error>>;
fn flush(&self) -> Result<(), Box<Error>>;
}Traits which need to be implemented by any storage
Required Methods
fn get(&self, _: &str) -> Result<Vec<u8>, Box<Error>>
Return serialized value of variable
fn set(&self, _: &str, _: &[u8]) -> Result<(), Box<Error>>
Set serialized value of variable
fn flush(&self) -> Result<(), Box<Error>>
Flush storage
Implementors
impl PersistentCache for RedisStorageimpl PersistentCache for FileStorage