Struct sessions_redis::RedisStorage
source · pub struct RedisStorage<T> { /* private fields */ }Implementations§
source§impl<T> RedisStorage<T>
impl<T> RedisStorage<T>
Trait Implementations§
source§impl<T: Clone> Clone for RedisStorage<T>
impl<T: Clone> Clone for RedisStorage<T>
source§fn clone(&self) -> RedisStorage<T>
fn clone(&self) -> RedisStorage<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug> Debug for RedisStorage<T>
impl<T: Debug> Debug for RedisStorage<T>
source§impl<T> Storage for RedisStorage<T>where
T: ConnectionLike + Clone + Send + Sync,
impl<T> Storage for RedisStorage<T>where T: ConnectionLike + Clone + Send + Sync,
source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<Data>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Option<Data>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Get a data from storage by the key
source§fn set<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
val: Data,
exp: &'life2 Duration
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, key: &'life1 str, val: Data, exp: &'life2 Duration ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Set a session to storage
source§fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Remove a data from storage by the key