redis 5.11.0 → 5.12.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/README.md +11 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -133,6 +133,17 @@ await client.hGet("key", "field"); // { field: <Buffer 76 61 6c 75 65> }
|
|
|
133
133
|
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
+
For commands that return serialized binary payloads, such as `DUMP`, map blob strings to `Buffer` before using the result with commands like `RESTORE`:
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
const binaryClient = createClient().withTypeMapping({
|
|
140
|
+
[RESP_TYPES.BLOB_STRING]: Buffer
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
const dump = await binaryClient.dump("source");
|
|
144
|
+
await binaryClient.restore("destination", 0, dump);
|
|
145
|
+
```
|
|
146
|
+
|
|
136
147
|
### Unsupported Redis Commands
|
|
137
148
|
|
|
138
149
|
If you want to run commands and/or use arguments that Node Redis doesn't know about (yet!) use `.sendCommand()`:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redis",
|
|
3
3
|
"description": "A modern, high performance Redis client",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.12.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"release": "release-it"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@redis/bloom": "5.
|
|
17
|
-
"@redis/client": "5.
|
|
18
|
-
"@redis/json": "5.
|
|
19
|
-
"@redis/search": "5.
|
|
20
|
-
"@redis/time-series": "5.
|
|
16
|
+
"@redis/bloom": "5.12.0",
|
|
17
|
+
"@redis/client": "5.12.0",
|
|
18
|
+
"@redis/json": "5.12.0",
|
|
19
|
+
"@redis/search": "5.12.0",
|
|
20
|
+
"@redis/time-series": "5.12.0"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">= 18"
|
|
23
|
+
"node": ">= 18.19.0"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|