Skip to main content

CacheKey

Trait CacheKey 

Source
pub trait CacheKey:
    Send
    + Sync
    + Hash
    + Eq
    + Clone
    + 'static {
    // Required method
    fn to_cache_key(&self) -> String;
}
Expand description

Unified cache key trait for all cache types

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§