Struct rust_cache::common::NullCache [] [src]

pub struct NullCache;

This sturct is for use in places that require a Cache impl but you dont want to actually cache anything. exmples could be testing and such

Trait Implementations

impl Cache for NullCache

type Error = ()

fn fetch<T>(&mut self, _: &String) -> Result<Option<T>, Self::Error>

fn save<T>(&mut self, _: &String, _: &T, _: Duration) -> Result<(), Self::Error>

fn delete(&mut self, _: &String) -> Result<(), Self::Error>

fn clear(&mut self) -> Result<(), Self::Error>