Struct poem::session::RedisStorage
source[−]pub struct RedisStorage<T> { /* private fields */ }
This is supported on crate features
session
and redis-session
only.Expand description
Implementations
Trait Implementations
Load session entries.
fn update_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
entries: &'life2 BTreeMap<String, Value>,
expires: Option<Duration>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn update_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
entries: &'life2 BTreeMap<String, Value>,
expires: Option<Duration>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Insert or update a session.
Auto Trait Implementations
impl<T> RefUnwindSafe for RedisStorage<T> where
T: RefUnwindSafe,
impl<T> Send for RedisStorage<T> where
T: Send,
impl<T> Sync for RedisStorage<T> where
T: Sync,
impl<T> Unpin for RedisStorage<T> where
T: Unpin,
impl<T> UnwindSafe for RedisStorage<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more