Trait persistentcache::PersistentCache [] [src]

pub trait PersistentCache {
    fn get(&self, _: &str) -> Result<Vec<u8>, Error>;
fn set(&self, _: &str, _: &[u8]) -> Result<(), Error>;
fn flush(&self) -> Result<(), Error>; }

Traits which need to be implemented by any storage

Required Methods

Return serialized value of variable

Set serialized value of variable

Flush storage

Implementors