Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryMapStorage<TKey, TValue>

A KeyValueStorage which uses a JavaScript Map for internal storage. Warning: Uses a Map object, which internally uses Object.is for key equality, so object keys have to be the same objects.

Type parameters

  • TKey

  • TValue

Hierarchy

  • MemoryMapStorage

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly data

data: Map<TKey, TValue>

Methods

delete

  • delete(key: TKey): Promise<boolean>

entries

  • entries(): AsyncIterableIterator<[TKey, TValue]>

get

  • get(key: TKey): Promise<undefined | TValue>

has

  • has(key: TKey): Promise<boolean>

set