pub struct LocalClient { /* private fields */ }Expand description
Local cache client using Moka
Implementations§
Source§impl LocalClient
impl LocalClient
Sourcepub fn new(config: LocalConfig) -> Self
pub fn new(config: LocalConfig) -> Self
Create a new local cache client
Sourcepub async fn run_pending_tasks(&self)
pub async fn run_pending_tasks(&self)
Run pending maintenance tasks
Sourcepub fn stats(&self) -> LocalCacheStats
pub fn stats(&self) -> LocalCacheStats
Get cache statistics
Trait Implementations§
Source§impl Clone for LocalClient
impl Clone for LocalClient
Source§fn clone(&self) -> LocalClient
fn clone(&self) -> LocalClient
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 moreAuto Trait Implementations§
impl Freeze for LocalClient
impl !RefUnwindSafe for LocalClient
impl Send for LocalClient
impl Sync for LocalClient
impl Unpin for LocalClient
impl !UnwindSafe for LocalClient
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