ctx.user.
The atomic unit is a TOP-LEVEL key inside a namespace: ctx.user.set('address.city', …)
reads and rewrites the whole address entry, while two different top-level
keys never touch each other. value is JSON-compatible data (stores persist
it as JSON and hand back a fresh copy on every read). userId, namespace
and key are compared as EXACT strings: case, accents and leading or
trailing whitespace all make a different entry.
Properties
userId
senderId). Opaque.
namespace
'default' for ctx.user).
key
value
expiresAt?
undefined = never
expires. Always a safe integer when written by ctx.user (BIGINT columns
and Redis PX reject fractions).