Skip to main content

KeyValue

KeyValue<T>: object

Represents a key-value pair with an optional expiration date.

Type Parameters

Type ParameterDescription
TThe type of the value stored.

Type declaration

expires_at?

optional expires_at: Date

key

key: string

value

value: T