pub trait GetOrFetchExt: AsyncCommands {
    fn get_or_fetch<'life0, 'async_trait, K, V, F, Fut>(
        &'life0 mut self,
        key: K,
        data_loader: F,
        expire_seconds: usize
    ) -> Pin<Box<dyn Future<Output = Result<V>> + Send + 'async_trait>>
   where
        K: ToRedisArgs + Send + Sync,
        V: FromRedisValue + ToRedisArgs + Send + Sync,
        F: FnOnce() -> Fut + Send,
        Fut: Future<Output = Result<V>> + Send,
        K: 'async_trait,
        V: 'async_trait,
        F: 'async_trait,
        Fut: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required Methods

Implementations on Foreign Types

Implementors