pub struct BackendKeyspace {
pub namespace: Option<Arc<str>>,
pub type_name: &'static str,
}Expand description
Namespace/type scope for backend storage and invalidation channels.
namespace comes from crate::punnu::PunnuConfig::namespace.
type_name is crate::Cacheable::cache_type_name for the cached type.
Backends should encode both components before putting them in
filesystem paths, Redis keys, channels, or other backend-native
identifiers.
Fields§
§namespace: Option<Arc<str>>Optional deployment/application namespace.
type_name: &'static strCached type label from crate::Cacheable::cache_type_name.
Trait Implementations§
Source§impl Clone for BackendKeyspace
impl Clone for BackendKeyspace
Source§fn clone(&self) -> BackendKeyspace
fn clone(&self) -> BackendKeyspace
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 BackendKeyspace
impl Debug for BackendKeyspace
Source§impl PartialEq for BackendKeyspace
impl PartialEq for BackendKeyspace
impl Eq for BackendKeyspace
impl StructuralPartialEq for BackendKeyspace
Auto Trait Implementations§
impl Freeze for BackendKeyspace
impl RefUnwindSafe for BackendKeyspace
impl Send for BackendKeyspace
impl Sync for BackendKeyspace
impl Unpin for BackendKeyspace
impl UnsafeUnpin for BackendKeyspace
impl UnwindSafe for BackendKeyspace
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§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.