Struct anansi_core::cache::local_cache::LocalCache
source · pub struct LocalCache(_);Trait Implementations§
source§impl BaseCache for LocalCache
impl BaseCache for LocalCache
fn new<'life0, 'async_trait>( _settings: &'life0 Settings ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where Self: Sized + 'async_trait, 'life0: 'async_trait,
fn set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, key: &'life1 str, value: &'life2 [u8] ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn set_ex<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, key: &'life1 str, value: &'life2 [u8], timeout: Option<usize> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn set_many<'a, 'life0, 'async_trait>( &'life0 self, items: &'a [(String, Vec<u8>)] ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,
fn get<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn get_many<'life0, 'async_trait>( &'life0 self, key: Vec<String> ) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<u8>>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§impl Clone for LocalCache
impl Clone for LocalCache
source§fn clone(&self) -> LocalCache
fn clone(&self) -> LocalCache
Returns a copy 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 more