Struct anansi::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 Map<String, Value> ) -> Pin<Box<dyn Future<Output = Result<LocalCache, Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, LocalCache: Sized + 'async_trait,
fn set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, key: &'life1 str, value: &'life2 [u8] ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, LocalCache: '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<(), Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, LocalCache: 'async_trait,
fn set_many<'a, 'life0, 'async_trait>( &'life0 self, items: &'a [(String, Vec<u8, Global>)] ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'life0: 'async_trait, LocalCache: 'async_trait,
fn get<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, LocalCache: 'async_trait,
fn get_many<'life0, 'async_trait>( &'life0 self, key: Vec<String, Global> ) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<u8, Global>, Global>, Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, LocalCache: '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