@keyv/redis 5.1.2 → 5.1.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 +2 -2
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -170,13 +170,13 @@ You can pass these options when creating a new `KeyvRedis` instance:
|
|
|
170
170
|
import Keyv from 'keyv';
|
|
171
171
|
import KeyvRedis from '@keyv/redis';
|
|
172
172
|
|
|
173
|
-
const keyvRedis = new KeyvRedis({
|
|
173
|
+
const keyvRedis = new KeyvRedis('redis://user:pass@localhost:6379', {
|
|
174
174
|
namespace: 'my-namespace',
|
|
175
175
|
keyPrefixSeparator: ':',
|
|
176
176
|
clearBatchSize: 1000,
|
|
177
177
|
useUnlink: true,
|
|
178
178
|
noNamespaceAffectsAll: false,
|
|
179
|
-
|
|
179
|
+
connectionTimeout: 200
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
const keyv = new Keyv({ store: keyvRedis });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keyv/redis",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Redis storage adapter for Keyv",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/jaredwray/keyv",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@redis/client": "^5.8.
|
|
37
|
+
"@redis/client": "^5.8.3",
|
|
38
38
|
"cluster-key-slot": "^1.1.2",
|
|
39
|
-
"hookified": "^1.12.
|
|
39
|
+
"hookified": "^1.12.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"keyv": "^5.5.
|
|
42
|
+
"keyv": "^5.5.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@biomejs/biome": "^2.2.
|
|
45
|
+
"@biomejs/biome": "^2.2.5",
|
|
46
46
|
"@faker-js/faker": "^10.0.0",
|
|
47
47
|
"@vitest/coverage-v8": "^3.2.4",
|
|
48
48
|
"rimraf": "^6.0.1",
|
|
@@ -63,8 +63,10 @@
|
|
|
63
63
|
],
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
"lint": "biome check --write --error-on-warnings",
|
|
67
|
+
"lint:ci": "biome check --error-on-warnings",
|
|
68
|
+
"test": "pnpm lint && vitest run --coverage",
|
|
69
|
+
"test:ci": "pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage",
|
|
68
70
|
"clean": "rimraf ./node_modules ./coverage ./dist"
|
|
69
71
|
}
|
|
70
72
|
}
|