Skip to main content

KeyValue

KeyValue<T> = object

Represents a key-value pair returned by KeyValueStore.select(). Contains the key, value, and optional expiration date.

Type Parameters

Type Parameter
T

Properties

expires_at?

optional expires_at: Date

The expiration date for this entry. After this date, the entry is no longer visible in queries and will eventually be deleted. Undefined if the entry has no expiration.


key

key: string

The string key that identifies this entry in the store.


value

value: T

The stored value, deserialized to type T.