Skip to main content
Defined in: core/provider.ts:1473 One persisted per-user profile entry — the storage unit behind 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

Defined in: core/provider.ts:1475 Canonical subject id (the provider-resolved senderId). Opaque.

namespace

Defined in: core/provider.ts:1477 Namespace that groups keys ('default' for ctx.user).

key

Defined in: core/provider.ts:1479 Top-level key inside the namespace (first segment of a dot path).

value

Defined in: core/provider.ts:1481 JSON-compatible value.

expiresAt?

Defined in: core/provider.ts:1487 Epoch ms after which the entry counts as absent. undefined = never expires. Always a safe integer when written by ctx.user (BIGINT columns and Redis PX reject fractions).

updatedAt

Defined in: core/provider.ts:1489 Epoch ms of the last write (integer).