CacheKey

Trait CacheKey 

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

Cache key generation trait

Implement this trait for types that can be used as cache keys.

Required Methods§

Source

fn cache_key(&self) -> String

Generate the cache key string

Implementations on Foreign Types§

Source§

impl CacheKey for &str

Source§

impl CacheKey for i64

Source§

impl CacheKey for u64

Source§

impl CacheKey for String

Implementors§