Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Properties

[eventEmitter]: EventEmitter2

Event emitter to produce mutation events

size: number

Number of elements within the cache

Methods

  • [iterator](): IterableIterator<K>
  • entries(): IterableIterator<[K, V]>
  • has(key: K): boolean
  • keys(): IterableIterator<K>
  • removeTTLFrom(key: K): boolean
  • Removes the ttl descriptor from a cache item by the specified key. The method returns true if the operation has been successful, otherwise false (the requested item hasn't been found).

    Parameters

    • key: K

    Returns boolean

  • values(): IterableIterator<V>