OptionaldisconnectThe stored value, or null when missing or expired.
OptionalincrementIncrements a counter, creating it at 1. Store a counter as a number
(set(key, 5)): on Redis the string '5' is stored as JSON ("5"),
which INCR refuses.
OptionalincrementAtomically increments a counter, creating it with ttlMs expiry when it
does not exist (or has lost its expiry). Used by rate limiting.
ttl in seconds.
Optionalttl: numberOptionalsetLike set(), but only if the key exists (and has not expired), checked
and written atomically (Redis: SET ... XX); whether it was written.
Used by the cache session store, so a save cannot re-create a session
that another request deleted.
Optionalttl: number
Standard cache interface. Values are JSON-serializable: what get() returns is whatever was set, so narrow it where it is read.