Skip to main content

Module redis

Module redis 

Source
Expand description

Redis/Valkey-backed SessionStore (redis-store feature).

Keys are Cluster hash-tagged on the session id (spec “Cluster readiness”): a session’s payload, meta, and lock always share a slot. The subject index is a SET per sha256(subject), lazily pruned. Payloads arrive already sealed (AES-256-GCM via the plugin’s CookieSealer) — nothing readable sits in Redis. Errors bump gateway_session_store_errors_total{store} and surface as StoreError (503 at the plugin).

Structs§

RedisSessionStore

Functions§

id_of_meta_key 🔒
Extracts the id from a meta key produced by meta_key.
lock_key 🔒
meta_key 🔒
sess_key 🔒
Key builders — pure, unit-tested. Braces are literal Redis Cluster hash tags, so sess/meta/lock for one id always share a slot.
sha256_hex 🔒
subj_key 🔒