[][src]Trait blip::service::cache::Source

pub trait Source: Sync + Send + 'static {
#[must_use]    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
This is supported on feature="cache" only.

A type that can produce a binary value, given a key.

Required methods

#[must_use]fn get<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

This is supported on feature="cache" only.

Retrieve a value for key.

Loading content...

Implementors

Loading content...