pub struct CacheOptions { /* private fields */ }
Implementations§
Source§impl CacheOptions
impl CacheOptions
Sourcepub fn builder() -> CacheOptionsBuilder<((), (), (), (), ())>
pub fn builder() -> CacheOptionsBuilder<((), (), (), (), ())>
Create a builder for building CacheOptions
.
On the builder, call .memory_duration(...)
(optional), .disk_duration(...)
(optional), .initial_disk_cleanup_after(...)
(optional), .purge(...)
(optional), .version(...)
(optional) to set the values of the fields (they accept Into
values).
Finally, call .build()
to create the instance of CacheOptions
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheOptions
impl RefUnwindSafe for CacheOptions
impl Send for CacheOptions
impl Sync for CacheOptions
impl Unpin for CacheOptions
impl UnwindSafe for CacheOptions
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