@marianmeres/kv 2.3.0 → 2.4.0
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/dist/adapter/redis.d.ts +5 -2
- package/package.json +4 -4
package/dist/adapter/redis.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Redis key-value storage adapter implementation.
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { RedisClientPoolType, RedisClientType } from "redis";
|
|
7
7
|
import { AdapterAbstract, type AdapterAbstractOptions, type Operation, type SetMultipleEntry, type SetOptions, type TtlResult } from "./abstract.js";
|
|
8
8
|
/**
|
|
9
9
|
* Configuration options for the Redis KV adapter.
|
|
@@ -12,8 +12,11 @@ export interface AdapterRedisOptions extends AdapterAbstractOptions {
|
|
|
12
12
|
/**
|
|
13
13
|
* Redis client instance created via `createClient()` or `createClientPool()`.
|
|
14
14
|
* Pool support is experimental and not fully tested.
|
|
15
|
+
*
|
|
16
|
+
* Typed with wide generics so any RESP version (RESP3 default, or the
|
|
17
|
+
* `createClient({ RESP: 2 })` v5-compat opt-in) and any module set is accepted.
|
|
15
18
|
*/
|
|
16
|
-
db:
|
|
19
|
+
db: RedisClientType<any, any, any, any, any> | RedisClientPoolType<any, any, any, any, any>;
|
|
17
20
|
/**
|
|
18
21
|
* Set to `true` if connecting to a Redis Cluster.
|
|
19
22
|
* Note: `keys()` and `clear()` operations are not supported in cluster mode.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marianmeres/kv",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/mod.js",
|
|
6
6
|
"types": "dist/mod.d.ts",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"author": "Marian Meres",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@marianmeres/clog": "^3.
|
|
25
|
+
"@marianmeres/clog": "^3.21.0",
|
|
26
26
|
"@types/pg": "^8.20.0",
|
|
27
27
|
"@types/redis": "^4.0.10",
|
|
28
|
-
"pg": "^8.
|
|
29
|
-
"redis": "^
|
|
28
|
+
"pg": "^8.21.0",
|
|
29
|
+
"redis": "^6.0.0"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|