Type Alias Connection

Source
pub type Connection = PooledConnection<'static, RedisClusterConnectionManager>;

Aliased Type§

struct Connection { /* private fields */ }

Trait Implementations§

Source§

impl GetOrRefreshExt for Connection

Source§

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 + 'async_trait, F: FnOnce() -> Fut + Send + 'static + 'async_trait, Fut: Future<Output = Result<V>> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,