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

Cache storage for persisted queries.

Required Methods

Load the query by key.

Save the query by key.

Implementors