Skip to content

Interface: DataGetModel<T>

Interface representing a data model retrieved from the cache.

Type Parameters

T

T

The type of the value stored.

Properties

expiresAt

ts
expiresAt: number;

The timestamp in milliseconds when the value expires.

Inherited from

ts
DataModel.expiresAt

isExpired

ts
isExpired: boolean;

Whether the value has expired.


value

ts
value: T;

The value stored in the cache.

Inherited from

ts
DataModel.value