Trait async_graphql::extensions::apollo_persisted_queries::CacheStorage[][src]

pub trait CacheStorage: Send + Sync + Clone + 'static {
#[must_use]    fn get<'life0, 'async_trait>(
        &'life0 self,
        key: String
    ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn set<'life0, 'async_trait>(
        &'life0 self,
        key: String,
        query: String
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Cache storage for persisted queries.

Required methods

#[must_use]fn get<'life0, 'async_trait>(
    &'life0 self,
    key: String
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Load the query by key.

#[must_use]fn set<'life0, 'async_trait>(
    &'life0 self,
    key: String,
    query: String
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Save the query by key.

Loading content...

Implementors

impl CacheStorage for LruCacheStorage[src]

Loading content...