@marianmeres/kv 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@ Key-value storage abstraction layer with support of multiple backend adapters:
|
|
|
5
5
|
- postgresql
|
|
6
6
|
- memory
|
|
7
7
|
|
|
8
|
+
The API is inspired by the Redis API.
|
|
9
|
+
|
|
8
10
|
TODO: Deno KV adapter
|
|
9
11
|
|
|
10
12
|
## Installation
|
|
@@ -25,8 +27,7 @@ import { createKVClient } from '@marianmeres/kv';
|
|
|
25
27
|
const client = createKVClient(
|
|
26
28
|
"my-app-namespace",
|
|
27
29
|
type: 'redis' | 'postgres' | 'memory' = 'memory',
|
|
28
|
-
|
|
29
|
-
options, // other options
|
|
30
|
+
options, // options... redisClient (for redis) or pg.Pool/pg.Client (for postgres)...
|
|
30
31
|
);
|
|
31
32
|
|
|
32
33
|
//
|