pub struct CacheOpts(/* private fields */);Expand description
Builder for CacheOptions with fluent API
Implementations§
Source§impl CacheOpts
impl CacheOpts
Add multiple tags
Sourcepub fn depends_on<I, S>(self, keys: I) -> Self
pub fn depends_on<I, S>(self, keys: I) -> Self
Add dependencies
Sourcepub fn early_refresh(self) -> Self
pub fn early_refresh(self) -> Self
Enable early probabilistic refresh
Sourcepub fn if_version(self, version: u64) -> Self
pub fn if_version(self, version: u64) -> Self
Conditional set: only if version matches
Sourcepub fn build(self) -> CacheOptions
pub fn build(self) -> CacheOptions
Build the options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheOpts
impl RefUnwindSafe for CacheOpts
impl Send for CacheOpts
impl Sync for CacheOpts
impl Unpin for CacheOpts
impl UnwindSafe for CacheOpts
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