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§
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/lockfor one id always share a slot. - sha256_
hex 🔒 - subj_
key 🔒