Options
All
  • Public
  • Public/Protected
  • All
Menu

Base interface for a cache data structure

Type parameters

  • V = unknown

    value type

  • K = string

    key type (string by default)

Hierarchy

Implemented by

Index

Properties

size: number

Number of elements within the cache

Methods

  • [iterator](): IterableIterator<K>
  • entries(): IterableIterator<[K, V]>
  • has(key: K): boolean
  • keys(): IterableIterator<K>
  • set(key: K, value: V, opts?: {}): V
  • values(): IterableIterator<V>