Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConcurrentExpiringMap<TKey>

Package version

Describes a map that ensures, deleting a an entry from the map is concurrency safe.

internal

Type parameters

  • TKey

Hierarchy

  • ConcurrentExpiringMap

Index

Constructors

Methods

Constructors

constructor

  • new ConcurrentExpiringMap(options?: undefined | { delayBetweenCleanupInMs?: undefined | number }): ConcurrentExpiringMap

Methods

clear

  • clear(): void

delete

  • delete(key: TKey): boolean

has

  • has(key: TKey): boolean

set

  • set(key: TKey, expiration: Date): void

Generated using TypeDoc