Removes the entry at key, if any.
The key to delete.
Reads the value stored at key.
Expected type of the stored value.
The key to read.
The stored value, or undefined if the key is absent or expired.
Reports whether a live (non-expired) entry exists at key.
The key to test.
true if a non-expired value is present.
Lists the keys of all live entries, optionally filtered by prefix.
Optionalprefix: stringWhen provided, only keys starting with this string are returned.
The matching keys.
Writes a value at key, optionally with a TTL after which it expires.
Type of the value being stored.
The key to write.
The value to store.
OptionalttlMs: numberOptional lifetime in milliseconds; if omitted the entry never expires.
Async key/value store with optional per-key time-to-live (TTL).
Remarks
This is the seam RTCForge uses for shared state (room state, session data, and so on). The default in-process implementation is MemoryStateStore; production deployments can supply an adapter backed by Redis or another store. Values are stored as-is and are typed only by the caller-supplied type parameter — no runtime validation is performed.