4.2.3 • Published 7 months ago

@accumulators/core v4.2.3

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

core

Store

Store is a class that provides a simple interface for storing and retrieving key-value pairs.

Store has the following interface:

interface IStore {
  get(key: string): Promise<string | undefined>;
  getMany(keys: string[]): Promise<Map<string, string>>;

  set(key: string, value: string): Promise<void>;
  setMany(values: Map<string, string>): Promise<void>;

  delete(key: string): Promise<void>;
  deleteMany(keys: string[]): Promise<void>;
}

Implementations

Store can be implemented in many different ways, for example in memory or database.

Currently there are three implementations:

You can also implement your own store. Just write a class that implements IStore interface and you are good to go.

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

9 months ago

2.0.4

9 months ago

4.0.1

8 months ago

4.2.1

8 months ago

2.0.0

11 months ago

1.2.1

11 months ago