Skip to main content

Cacheable

Trait Cacheable 

Source
pub trait Cacheable {
    // Required method
    fn clear_cache(&mut self);

    // Provided method
    fn cache_hit_rate(&self) -> Option<f32> { ... }
}

Required Methods§

Source

fn clear_cache(&mut self)

Clear any cached data

Provided Methods§

Source

fn cache_hit_rate(&self) -> Option<f32>

Get cache hit rate if applicable

Implementors§