pub struct CacheTopology { /* private fields */ }Implementations§
Source§impl CacheTopology
impl CacheTopology
pub fn moka_only() -> Self
pub fn with_redis() -> Self
pub fn with_valkey() -> Self
pub fn l1(&self) -> LocalCacheBackend
pub fn l2(&self) -> Option<DistributedCacheBackend>
pub fn request_coalescing_mode(&self) -> RequestCoalescingMode
Trait Implementations§
Source§impl Clone for CacheTopology
impl Clone for CacheTopology
Source§fn clone(&self) -> CacheTopology
fn clone(&self) -> CacheTopology
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 CacheTopology
impl Debug for CacheTopology
Source§impl<'de> Deserialize<'de> for CacheTopology
impl<'de> Deserialize<'de> for CacheTopology
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CacheTopology
impl PartialEq for CacheTopology
Source§impl Serialize for CacheTopology
impl Serialize for CacheTopology
impl Copy for CacheTopology
impl Eq for CacheTopology
impl StructuralPartialEq for CacheTopology
Auto Trait Implementations§
impl Freeze for CacheTopology
impl RefUnwindSafe for CacheTopology
impl Send for CacheTopology
impl Sync for CacheTopology
impl Unpin for CacheTopology
impl UnsafeUnpin for CacheTopology
impl UnwindSafe for CacheTopology
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