A type-hinted storage interface with items that can expire.

Type Parameters

Hierarchy

Implemented by

Properties

length: number

The number of items in storage.

totalSize: number

The total possible size of storage in bytes.

Methods

  • Calculate how many bytes of storage are in use. If no key is given, calculate for all keys.

    Parameters

    • Optional key: string

    Returns number

Generated using TypeDoc