pub enum CacheBackend {
RedisMemory,
MemoryOnly,
}Expand description
Cache backend selection
Variants§
RedisMemory
Redis + Memory (L1 + L2 strategy)
MemoryOnly
Memory only (Redis unavailable or not configured)
Trait Implementations§
Source§impl Clone for CacheBackend
impl Clone for CacheBackend
Source§fn clone(&self) -> CacheBackend
fn clone(&self) -> CacheBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheBackend
impl Debug for CacheBackend
Source§impl PartialEq for CacheBackend
impl PartialEq for CacheBackend
impl Copy for CacheBackend
impl Eq for CacheBackend
impl StructuralPartialEq for CacheBackend
Auto Trait Implementations§
impl Freeze for CacheBackend
impl RefUnwindSafe for CacheBackend
impl Send for CacheBackend
impl Sync for CacheBackend
impl Unpin for CacheBackend
impl UnwindSafe for CacheBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.