pub enum SpringCacheMode {
Native,
JCache,
None,
}Expand description
Spring Cache integration mode.
Variants§
Native
Lazy map-backed cache names for legacy CacheUtil style code.
JCache
Bind to JCache when the optional JCache provider is present.
None
Do not create a Spring CacheManager.
Implementations§
Source§impl SpringCacheMode
impl SpringCacheMode
Sourcepub const fn lazy_dynamic_cache_names(self) -> bool
pub const fn lazy_dynamic_cache_names(self) -> bool
Return whether this mode must lazily resolve dynamic cache names.
Sourcepub const fn requires_jcache_provider(self) -> bool
pub const fn requires_jcache_provider(self) -> bool
Return whether this mode requires a JCache provider.
Trait Implementations§
Source§impl Clone for SpringCacheMode
impl Clone for SpringCacheMode
Source§fn clone(&self) -> SpringCacheMode
fn clone(&self) -> SpringCacheMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpringCacheMode
Source§impl Debug for SpringCacheMode
impl Debug for SpringCacheMode
impl Eq for SpringCacheMode
Source§impl PartialEq for SpringCacheMode
impl PartialEq for SpringCacheMode
Source§fn eq(&self, other: &SpringCacheMode) -> bool
fn eq(&self, other: &SpringCacheMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpringCacheMode
Auto Trait Implementations§
impl Freeze for SpringCacheMode
impl RefUnwindSafe for SpringCacheMode
impl Send for SpringCacheMode
impl Sync for SpringCacheMode
impl Unpin for SpringCacheMode
impl UnsafeUnpin for SpringCacheMode
impl UnwindSafe for SpringCacheMode
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