hyperlane-plugin-session 22.13.0

A high-concurrency sharded session management plugin for the Hyperlane framework with pluggable async SessionStore traits, optional HMAC-SHA256 signed cookies, dirty-tracked zero-write reads, and session-fixation ID regeneration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::*;

/// Boxed `Send` future returned by async [`SessionStore`] trait methods.
pub type SessionFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;

/// Thread-safe shared reference to a pluggable [`SessionStore`].
pub type SharedSessionStore = Arc<dyn SessionStore>;

/// Fixed-size 64-way sharded session storage array.
pub(crate) type SessionShardArray =
    Box<[RwLock<HashMapXxHash3_64<String, StoredSession>>; SESSION_SHARD_COUNT]>;