Skip to content

CacheItem

Type interface

Defines an interface for cache items.

Sources

CacheItem is an interface: it describes a shape of data and is not imported on its own.

Properties

expired

Type boolean

Is this item expired?

touched

Type number

A timestamp of when the item was created/updated.

ttl

Type number

TTL (time to live) in milliseconds.

value

Type A

Cached value.