pub mod builder;
pub mod error;
pub mod fifo_cache;
#[cfg(test)]
mod mocks;
use self::error::CacheError;
pub trait Cache {
fn save(&self, key: &str, value: Vec<u8>) -> Result<(), CacheError>;
fn get(&self, key: &str) -> Option<Vec<u8>>;
fn delete(&self, key: &str) -> Option<Vec<u8>>;
fn purge(&self);
}