# @accumulators/core

> A collection of TypeScript accumulators packages, each using the core package

Latest version **4.2.3** (published 2023-10-06) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @accumulators/core
pnpm add @accumulators/core
yarn add @accumulators/core
bun add @accumulators/core
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.2.3 |
| Published | 2023-10-06 |
| First published | 2023-06-21 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Herodotus Dev Ltd |
| Maintainers | 0xmarcello, beeinger |

## Links

- npm: https://www.npmjs.com/package/@accumulators/core
- Repository: https://github.com/HerodotusDev/accumulators
- Issues: https://github.com/HerodotusDev/accumulators/issues
- npm.io page: https://npm.io/package/@accumulators/core

## Recent versions

- 4.2.3 (latest) — 2023-10-06
- 4.2.1 — 2023-09-11
- 4.2.0-alpha.1 — 2023-09-11
- 4.2.0-alpha.0 — 2023-09-11
- 4.0.1 — 2023-09-08
- 3.0.8 — 2023-08-28
- 3.0.3 — 2023-08-24
- 3.0.2 — 2023-08-24
- 3.0.1 — 2023-08-22
- 2.0.4 — 2023-08-22
- 2.0.3 — 2023-08-22
- 2.0.2 — 2023-08-22
- 2.0.0 — 2023-06-21
- 1.2.1 — 2023-06-21

## README

# `core`

## `Store`

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

Store has the following interface:

```typescript
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:

- [`@accumulators/memory`](../memory/README.md)
- [`@accumulators/rocksdb`](../rocksdb/README.md)
- [`@accumulators/sqlite3`](../sqlite3/README.md)

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

---
_Source: https://npm.io/package/@accumulators/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
