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

Required Methods

Implementors