4.2.3 • Published 7 months ago

@accumulators/memory v4.2.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
7 months ago

memory

Implementation of Store interface that stores data in memory using Map.

Example

import MemoryStore from "@accumulators/memory";

const store = new MemoryStore();

const valuesToSet = new Map<string, string>();
valuesToSet.set("key1", "value1");
valuesToSet.set("key2", "value2");

await store.setMany(valuesToSet);

await store.set("key3", "value3");

const values = await store.getMany(["key2", "key3"]);

console.log(values.get("key2")); // "value2"
4.2.0-alpha.0

8 months ago

3.0.3

9 months ago

3.0.2

9 months ago

4.2.0-alpha.1

8 months ago

3.0.1

9 months ago

3.0.8

8 months ago

4.2.3

7 months ago

2.0.3

9 months ago

2.0.2

10 months ago

2.0.4

9 months ago

4.0.1

8 months ago

4.2.1

8 months ago

2.0.1

10 months ago

2.0.0

11 months ago

1.2.1

11 months ago