CacheKey

Trait CacheKey 

Source
pub trait CacheKey {
    // Required method
    fn to_key(&self) -> String;
}
Expand description

A cache key.

Keys should be unique and deterministic. The same key should always return the same value.

Required Methods§

Source

fn to_key(&self) -> String

Implementors§

Source§

impl<T> CacheKey for T
where T: ToString + ?Sized,