redis 4.1.0 → 4.3.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 +2 -0
- package/dist/index.d.ts +15 -9
- package/dist/index.js +4 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -35,6 +35,8 @@ npm install redis
|
|
|
35
35
|
|
|
36
36
|
> :warning: The new interface is clean and cool, but if you have an existing codebase, you'll want to read the [migration guide](./docs/v3-to-v4.md).
|
|
37
37
|
|
|
38
|
+
Looking for a high-level library to handle object mapping? See [redis-om-node](https://github.com/redis/redis-om-node)!
|
|
39
|
+
|
|
38
40
|
## Usage
|
|
39
41
|
|
|
40
42
|
### Basic Example
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export * from '@redis/graph';
|
|
|
5
5
|
export * from '@redis/json';
|
|
6
6
|
export * from '@redis/search';
|
|
7
7
|
export * from '@redis/time-series';
|
|
8
|
-
declare const modules: {
|
|
9
|
-
graph: {
|
|
8
|
+
export declare const modules: {
|
|
9
|
+
readonly graph: {
|
|
10
10
|
CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
|
|
11
11
|
configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
|
|
12
12
|
CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
|
|
@@ -26,7 +26,7 @@ declare const modules: {
|
|
|
26
26
|
SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
|
|
27
27
|
slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
|
|
28
28
|
};
|
|
29
|
-
json: {
|
|
29
|
+
readonly json: {
|
|
30
30
|
ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
|
|
31
31
|
arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
|
|
32
32
|
ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
|
|
@@ -68,11 +68,13 @@ declare const modules: {
|
|
|
68
68
|
TYPE: typeof import("@redis/json/dist/commands/TYPE");
|
|
69
69
|
type: typeof import("@redis/json/dist/commands/TYPE");
|
|
70
70
|
};
|
|
71
|
-
ft: {
|
|
71
|
+
readonly ft: {
|
|
72
72
|
_LIST: typeof import("@redis/search/dist/commands/_LIST");
|
|
73
73
|
_list: typeof import("@redis/search/dist/commands/_LIST");
|
|
74
74
|
ALTER: typeof import("@redis/search/dist/commands/ALTER");
|
|
75
75
|
alter: typeof import("@redis/search/dist/commands/ALTER");
|
|
76
|
+
AGGREGATE_WITHCURSOR: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
|
|
77
|
+
aggregateWithCursor: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
|
|
76
78
|
AGGREGATE: typeof import("@redis/search/dist/commands/AGGREGATE");
|
|
77
79
|
aggregate: typeof import("@redis/search/dist/commands/AGGREGATE");
|
|
78
80
|
ALIASADD: typeof import("@redis/search/dist/commands/ALIASADD");
|
|
@@ -87,6 +89,10 @@ declare const modules: {
|
|
|
87
89
|
configSet: typeof import("@redis/search/dist/commands/CONFIG_SET");
|
|
88
90
|
CREATE: typeof import("@redis/search/dist/commands/CREATE");
|
|
89
91
|
create: typeof import("@redis/search/dist/commands/CREATE");
|
|
92
|
+
CURSOR_DEL: typeof import("@redis/search/dist/commands/CURSOR_DEL");
|
|
93
|
+
cursorDel: typeof import("@redis/search/dist/commands/CURSOR_DEL");
|
|
94
|
+
CURSOR_READ: typeof import("@redis/search/dist/commands/CURSOR_READ");
|
|
95
|
+
cursorRead: typeof import("@redis/search/dist/commands/CURSOR_READ");
|
|
90
96
|
DICTADD: typeof import("@redis/search/dist/commands/DICTADD");
|
|
91
97
|
dictAdd: typeof import("@redis/search/dist/commands/DICTADD");
|
|
92
98
|
DICTDEL: typeof import("@redis/search/dist/commands/DICTDEL");
|
|
@@ -130,7 +136,7 @@ declare const modules: {
|
|
|
130
136
|
TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
|
|
131
137
|
tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
|
|
132
138
|
};
|
|
133
|
-
ts: {
|
|
139
|
+
readonly ts: {
|
|
134
140
|
ADD: typeof import("@redis/time-series/dist/commands/ADD");
|
|
135
141
|
add: typeof import("@redis/time-series/dist/commands/ADD");
|
|
136
142
|
ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
|
|
@@ -174,7 +180,7 @@ declare const modules: {
|
|
|
174
180
|
MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
175
181
|
mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
176
182
|
};
|
|
177
|
-
bf: {
|
|
183
|
+
readonly bf: {
|
|
178
184
|
ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
|
|
179
185
|
add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
|
|
180
186
|
EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
|
|
@@ -194,7 +200,7 @@ declare const modules: {
|
|
|
194
200
|
SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
195
201
|
scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
196
202
|
};
|
|
197
|
-
cms: {
|
|
203
|
+
readonly cms: {
|
|
198
204
|
INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
199
205
|
incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
200
206
|
INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
|
|
@@ -208,7 +214,7 @@ declare const modules: {
|
|
|
208
214
|
QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
209
215
|
query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
210
216
|
};
|
|
211
|
-
cf: {
|
|
217
|
+
readonly cf: {
|
|
212
218
|
ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
|
|
213
219
|
add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
|
|
214
220
|
ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
|
|
@@ -232,7 +238,7 @@ declare const modules: {
|
|
|
232
238
|
SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
233
239
|
scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
234
240
|
};
|
|
235
|
-
topK: {
|
|
241
|
+
readonly topK: {
|
|
236
242
|
ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
|
|
237
243
|
add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
|
|
238
244
|
COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.createCluster = exports.createClient = void 0;
|
|
17
|
+
exports.createCluster = exports.createClient = exports.modules = void 0;
|
|
18
18
|
const client_1 = require("@redis/client");
|
|
19
19
|
const bloom_1 = require("@redis/bloom");
|
|
20
20
|
const graph_1 = require("@redis/graph");
|
|
@@ -27,7 +27,7 @@ __exportStar(require("@redis/graph"), exports);
|
|
|
27
27
|
__exportStar(require("@redis/json"), exports);
|
|
28
28
|
__exportStar(require("@redis/search"), exports);
|
|
29
29
|
__exportStar(require("@redis/time-series"), exports);
|
|
30
|
-
|
|
30
|
+
exports.modules = {
|
|
31
31
|
...bloom_1.default,
|
|
32
32
|
graph: graph_1.default,
|
|
33
33
|
json: json_1.default,
|
|
@@ -38,7 +38,7 @@ function createClient(options) {
|
|
|
38
38
|
return (0, client_1.createClient)({
|
|
39
39
|
...options,
|
|
40
40
|
modules: {
|
|
41
|
-
...modules,
|
|
41
|
+
...exports.modules,
|
|
42
42
|
...options?.modules
|
|
43
43
|
}
|
|
44
44
|
});
|
|
@@ -48,7 +48,7 @@ function createCluster(options) {
|
|
|
48
48
|
return (0, client_1.createCluster)({
|
|
49
49
|
...options,
|
|
50
50
|
modules: {
|
|
51
|
-
...modules,
|
|
51
|
+
...exports.modules,
|
|
52
52
|
...options?.modules
|
|
53
53
|
}
|
|
54
54
|
});
|
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": "4.
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@redis/bloom": "1.0.2",
|
|
27
|
-
"@redis/client": "1.
|
|
27
|
+
"@redis/client": "1.3.0",
|
|
28
28
|
"@redis/graph": "1.0.1",
|
|
29
29
|
"@redis/json": "1.0.3",
|
|
30
|
-
"@redis/search": "1.0
|
|
30
|
+
"@redis/search": "1.1.0",
|
|
31
31
|
"@redis/time-series": "1.0.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tsconfig/node14": "^1.0.
|
|
35
|
-
"gh-pages": "^
|
|
36
|
-
"release-it": "^15.
|
|
37
|
-
"typescript": "^4.
|
|
34
|
+
"@tsconfig/node14": "^1.0.3",
|
|
35
|
+
"gh-pages": "^4.0.0",
|
|
36
|
+
"release-it": "^15.3.0",
|
|
37
|
+
"typescript": "^4.7.4"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|