[][src]Trait sqs_lambda::cache::Cache

pub trait Cache<E> where
    E: Debug + Clone + Send + Sync + 'static, 
{ #[must_use] fn get<'life0, 'async_trait, CA: Cacheable + Send + Sync + 'static>(
        &'life0 mut self,
        cacheable: CA
    ) -> Pin<Box<dyn Future<Output = Result<CacheResponse, Error<E>>> + Send + 'async_trait>>
    where
        CA: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn store<'life0, 'async_trait>(
        &'life0 mut self,
        identity: Vec<u8>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<E>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn get<'life0, 'async_trait, CA: Cacheable + Send + Sync + 'static>(
    &'life0 mut self,
    cacheable: CA
) -> Pin<Box<dyn Future<Output = Result<CacheResponse, Error<E>>> + Send + 'async_trait>> where
    CA: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn store<'life0, 'async_trait>(
    &'life0 mut self,
    identity: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error<E>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<E> Cache<E> for NopCache where
    E: Debug + Clone + Send + Sync + 'static, 
[src]

impl<E> Cache<E> for RedisCache where
    E: Debug + Clone + Send + Sync + 'static, 
[src]

Loading content...