Trait CacheKey

Source
pub trait CacheKey:
    Clone
    + Debug
    + Send
    + Sync {
    // Required method
    fn to_string(&self) -> String;
}
Expand description

Cache key type - must be cloneable and debuggable

Required Methods§

Source

fn to_string(&self) -> String

Convert to string representation for storage

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CacheKey for String

Simple string-based cache key

Implementors§