Skip to main content

update

Function update 

Source
pub async fn update(
    backend: &SessionBackend,
    sealer: &CookieSealer,
    cookie_value: &str,
    payload: &[u8],
    ttl: Duration,
    meta: SessionMeta,
    cookie_name: &str,
    attrs: &CookieAttrs<'_>,
) -> Result<Option<String>, StoreError>
Expand description

Rewrites an existing session’s payload (token refresh). Redis mode: put under the SAME id (cookie unchanged → returns None). Cookie mode: the caller must send a fresh cookie (returns Some(set_cookie)).