redis 4.0.6 → 4.2.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 +88 -35
- package/dist/index.d.ts +239 -237
- package/dist/index.js +14 -14
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -4,22 +4,28 @@
|
|
|
4
4
|
[](https://codecov.io/gh/redis/node-redis)
|
|
5
5
|
[](https://github.com/redis/node-redis/blob/master/LICENSE)
|
|
6
6
|
[](https://lgtm.com/projects/g/redis/node-redis/alerts)
|
|
7
|
-
[](https://discord.gg/redis)
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
[](https://discord.gg/redis)
|
|
9
|
+
[](https://www.twitch.tv/redisinc)
|
|
10
|
+
[](https://www.youtube.com/redisinc)
|
|
11
|
+
[](https://twitter.com/redisinc)
|
|
12
|
+
|
|
13
|
+
node-redis is a modern, high performance [Redis](https://redis.io) client for Node.js.
|
|
10
14
|
|
|
11
15
|
|
|
12
16
|
## Packages
|
|
13
17
|
|
|
14
|
-
| Name
|
|
15
|
-
|
|
16
|
-
| [redis](./)
|
|
17
|
-
| [@
|
|
18
|
-
| [@
|
|
19
|
-
| [@
|
|
20
|
-
| [@
|
|
21
|
-
| [@
|
|
22
|
-
| [@
|
|
18
|
+
| Name | Description |
|
|
19
|
+
|----------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
20
|
+
| [redis](./) | [](https://www.npmjs.com/package/redis) [](https://www.npmjs.com/package/redis) |
|
|
21
|
+
| [@redis/client](./packages/client) | [](https://www.npmjs.com/package/@redis/client) [](https://www.npmjs.com/package/@redis/client) [](https://redis.js.org/documentation/client/) |
|
|
22
|
+
| [@redis/bloom](./packages/bloom) | [](https://www.npmjs.com/package/@redis/bloom) [](https://www.npmjs.com/package/@redis/bloom) [](https://redis.js.org/documentation/bloom/) [Redis Bloom](https://oss.redis.com/redisbloom/) commands |
|
|
23
|
+
| [@redis/graph](./packages/graph) | [](https://www.npmjs.com/package/@redis/graph) [](https://www.npmjs.com/package/@redis/graph) [](https://redis.js.org/documentation/graph/) [Redis Graph](https://oss.redis.com/redisgraph/) commands |
|
|
24
|
+
| [@redis/json](./packages/json) | [](https://www.npmjs.com/package/@redis/json) [](https://www.npmjs.com/package/@redis/json) [](https://redis.js.org/documentation/json/) [Redis JSON](https://oss.redis.com/redisjson/) commands |
|
|
25
|
+
| [@redis/search](./packages/search) | [](https://www.npmjs.com/package/@redis/search) [](https://www.npmjs.com/package/@redis/search) [](https://redis.js.org/documentation/search/) [Redis Search](https://oss.redis.com/redisearch/) commands |
|
|
26
|
+
| [@redis/time-series](./packages/time-series) | [](https://www.npmjs.com/package/@redis/time-series) [](https://www.npmjs.com/package/@redis/time-series) [](https://redis.js.org/documentation/time-series/) [Redis Time-Series](https://oss.redis.com/redistimeseries/) commands |
|
|
27
|
+
|
|
28
|
+
> :warning: In version 4.1.0 we moved our subpackages from `@node-redis` to `@redis`. If you're just using `npm install redis`, you don't need to do anything—it'll upgrade automatically. If you're using the subpackages directly, you'll need to point to the new scope (e.g. `@redis/client` instead of `@node-redis/client`).
|
|
23
29
|
|
|
24
30
|
## Installation
|
|
25
31
|
|
|
@@ -36,16 +42,14 @@ npm install redis
|
|
|
36
42
|
```typescript
|
|
37
43
|
import { createClient } from 'redis';
|
|
38
44
|
|
|
39
|
-
|
|
40
|
-
const client = createClient();
|
|
45
|
+
const client = createClient();
|
|
41
46
|
|
|
42
|
-
|
|
47
|
+
client.on('error', (err) => console.log('Redis Client Error', err));
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
await client.connect();
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})();
|
|
51
|
+
await client.set('key', 'value');
|
|
52
|
+
const value = await client.get('key');
|
|
49
53
|
```
|
|
50
54
|
|
|
51
55
|
The above code connects to localhost on port 6379. To connect to a different host or port, use a connection string in the format `redis[s]://[[username][:password]@][host][:port][/db-number]`:
|
|
@@ -221,36 +225,84 @@ client.scanIterator({
|
|
|
221
225
|
});
|
|
222
226
|
```
|
|
223
227
|
|
|
224
|
-
###
|
|
228
|
+
### [Programmability](https://redis.io/docs/manual/programmability/)
|
|
229
|
+
|
|
230
|
+
Redis provides a programming interface allowing code execution on the redis server.
|
|
231
|
+
|
|
232
|
+
#### [Functions](https://redis.io/docs/manual/programmability/functions-intro/)
|
|
233
|
+
|
|
234
|
+
The following example retrieves a key in redis, returning the value of the key, incremented by an integer. For example, if your key _foo_ has the value _17_ and we run `add('foo', 25)`, it returns the answer to Life, the Universe and Everything.
|
|
235
|
+
|
|
236
|
+
```lua
|
|
237
|
+
#!lua name=library
|
|
238
|
+
|
|
239
|
+
redis.register_function {
|
|
240
|
+
function_name = 'add',
|
|
241
|
+
callback = function(keys, args) return redis.call('GET', keys[1]) + args[1] end,
|
|
242
|
+
flags = { 'no-writes' }
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Here is the same example, but in a format that can be pasted into the `redis-cli`.
|
|
247
|
+
|
|
248
|
+
```
|
|
249
|
+
FUNCTION LOAD "#!lua name=library\nredis.register_function{function_name=\"add\", callback=function(keys, args) return redis.call('GET', keys[1])+args[1] end, flags={\"no-writes\"}}"
|
|
250
|
+
```
|
|
225
251
|
|
|
226
|
-
|
|
252
|
+
Load the prior redis function on the _redis server_ before running the example below.
|
|
227
253
|
|
|
228
254
|
```typescript
|
|
229
|
-
import { createClient
|
|
255
|
+
import { createClient } from 'redis';
|
|
230
256
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
add:
|
|
257
|
+
const client = createClient({
|
|
258
|
+
functions: {
|
|
259
|
+
library: {
|
|
260
|
+
add: {
|
|
235
261
|
NUMBER_OF_KEYS: 1,
|
|
236
|
-
SCRIPT:
|
|
237
|
-
'local val = redis.pcall("GET", KEYS[1]);' +
|
|
238
|
-
'return val + ARGV[1];',
|
|
239
262
|
transformArguments(key: string, toAdd: number): Array<string> {
|
|
240
263
|
return [key, toAdd.toString()];
|
|
241
264
|
},
|
|
242
265
|
transformReply(reply: number): number {
|
|
243
266
|
return reply;
|
|
244
267
|
}
|
|
245
|
-
}
|
|
268
|
+
}
|
|
246
269
|
}
|
|
247
|
-
}
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
await client.connect();
|
|
274
|
+
|
|
275
|
+
await client.set('key', '1');
|
|
276
|
+
await client.library.add('key', 2); // 3
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
#### [Lua Scripts](https://redis.io/docs/manual/programmability/eval-intro/)
|
|
280
|
+
|
|
281
|
+
The following is an end-to-end example of the prior concept.
|
|
282
|
+
|
|
283
|
+
```typescript
|
|
284
|
+
import { createClient, defineScript } from 'redis';
|
|
285
|
+
|
|
286
|
+
const client = createClient({
|
|
287
|
+
scripts: {
|
|
288
|
+
add: defineScript({
|
|
289
|
+
NUMBER_OF_KEYS: 1,
|
|
290
|
+
SCRIPT:
|
|
291
|
+
'return redis.call("GET", KEYS[1]) + ARGV[1];',
|
|
292
|
+
transformArguments(key: string, toAdd: number): Array<string> {
|
|
293
|
+
return [key, toAdd.toString()];
|
|
294
|
+
},
|
|
295
|
+
transformReply(reply: number): number {
|
|
296
|
+
return reply;
|
|
297
|
+
}
|
|
298
|
+
})
|
|
299
|
+
}
|
|
300
|
+
});
|
|
248
301
|
|
|
249
|
-
|
|
302
|
+
await client.connect();
|
|
250
303
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
})();
|
|
304
|
+
await client.set('key', '1');
|
|
305
|
+
await client.add('key', 2); // 3
|
|
254
306
|
```
|
|
255
307
|
|
|
256
308
|
### Disconnecting
|
|
@@ -325,9 +377,10 @@ Node Redis is supported with the following versions of Redis:
|
|
|
325
377
|
|
|
326
378
|
| Version | Supported |
|
|
327
379
|
|---------|--------------------|
|
|
380
|
+
| 7.0.z | :heavy_check_mark: |
|
|
328
381
|
| 6.2.z | :heavy_check_mark: |
|
|
329
382
|
| 6.0.z | :heavy_check_mark: |
|
|
330
|
-
| 5.
|
|
383
|
+
| 5.0.z | :heavy_check_mark: |
|
|
331
384
|
| < 5.0 | :x: |
|
|
332
385
|
|
|
333
386
|
> Node Redis should work with older versions of Redis, but it is not fully tested and we cannot offer support.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,256 +1,258 @@
|
|
|
1
|
-
import { RedisModules, RedisScripts, RedisClientOptions, RedisClientType as _RedisClientType, RedisClusterOptions, RedisClusterType as _RedisClusterType } from '@
|
|
2
|
-
export * from '@
|
|
3
|
-
export * from '@
|
|
4
|
-
export * from '@
|
|
5
|
-
export * from '@
|
|
6
|
-
export * from '@
|
|
7
|
-
export * from '@
|
|
1
|
+
import { RedisModules, RedisFunctions, RedisScripts, RedisClientOptions, RedisClientType as _RedisClientType, RedisClusterOptions, RedisClusterType as _RedisClusterType } from '@redis/client';
|
|
2
|
+
export * from '@redis/client';
|
|
3
|
+
export * from '@redis/bloom';
|
|
4
|
+
export * from '@redis/graph';
|
|
5
|
+
export * from '@redis/json';
|
|
6
|
+
export * from '@redis/search';
|
|
7
|
+
export * from '@redis/time-series';
|
|
8
8
|
declare const modules: {
|
|
9
9
|
graph: {
|
|
10
|
-
CONFIG_GET: typeof import("@
|
|
11
|
-
configGet: typeof import("@
|
|
12
|
-
CONFIG_SET: typeof import("@
|
|
13
|
-
configSet: typeof import("@
|
|
14
|
-
DELETE: typeof import("@
|
|
15
|
-
delete: typeof import("@
|
|
16
|
-
EXPLAIN: typeof import("@
|
|
17
|
-
explain: typeof import("@
|
|
18
|
-
LIST: typeof import("@
|
|
19
|
-
list: typeof import("@
|
|
20
|
-
PROFILE: typeof import("@
|
|
21
|
-
profile: typeof import("@
|
|
22
|
-
QUERY_RO: typeof import("@
|
|
23
|
-
queryRo: typeof import("@
|
|
24
|
-
QUERY: typeof import("@
|
|
25
|
-
query: typeof import("@
|
|
26
|
-
SLOWLOG: typeof import("@
|
|
27
|
-
slowLog: typeof import("@
|
|
10
|
+
CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
|
|
11
|
+
configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
|
|
12
|
+
CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
|
|
13
|
+
configSet: typeof import("@redis/graph/dist/commands/CONFIG_SET");
|
|
14
|
+
DELETE: typeof import("@redis/graph/dist/commands/DELETE");
|
|
15
|
+
delete: typeof import("@redis/graph/dist/commands/DELETE");
|
|
16
|
+
EXPLAIN: typeof import("@redis/graph/dist/commands/EXPLAIN");
|
|
17
|
+
explain: typeof import("@redis/graph/dist/commands/EXPLAIN");
|
|
18
|
+
LIST: typeof import("@redis/graph/dist/commands/LIST");
|
|
19
|
+
list: typeof import("@redis/graph/dist/commands/LIST");
|
|
20
|
+
PROFILE: typeof import("@redis/graph/dist/commands/PROFILE");
|
|
21
|
+
profile: typeof import("@redis/graph/dist/commands/PROFILE");
|
|
22
|
+
QUERY_RO: typeof import("@redis/graph/dist/commands/QUERY_RO");
|
|
23
|
+
queryRo: typeof import("@redis/graph/dist/commands/QUERY_RO");
|
|
24
|
+
QUERY: typeof import("@redis/graph/dist/commands/QUERY");
|
|
25
|
+
query: typeof import("@redis/graph/dist/commands/QUERY");
|
|
26
|
+
SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
|
|
27
|
+
slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
|
|
28
28
|
};
|
|
29
29
|
json: {
|
|
30
|
-
ARRAPPEND: typeof import("@
|
|
31
|
-
arrAppend: typeof import("@
|
|
32
|
-
ARRINDEX: typeof import("@
|
|
33
|
-
arrIndex: typeof import("@
|
|
34
|
-
ARRINSERT: typeof import("@
|
|
35
|
-
arrInsert: typeof import("@
|
|
36
|
-
ARRLEN: typeof import("@
|
|
37
|
-
arrLen: typeof import("@
|
|
38
|
-
ARRPOP: typeof import("@
|
|
39
|
-
arrPop: typeof import("@
|
|
40
|
-
ARRTRIM: typeof import("@
|
|
41
|
-
arrTrim: typeof import("@
|
|
42
|
-
DEBUG_MEMORY: typeof import("@
|
|
43
|
-
debugMemory: typeof import("@
|
|
44
|
-
DEL: typeof import("@
|
|
45
|
-
del: typeof import("@
|
|
46
|
-
FORGET: typeof import("@
|
|
47
|
-
forget: typeof import("@
|
|
48
|
-
GET: typeof import("@
|
|
49
|
-
get: typeof import("@
|
|
50
|
-
MGET: typeof import("@
|
|
51
|
-
mGet: typeof import("@
|
|
52
|
-
NUMINCRBY: typeof import("@
|
|
53
|
-
numIncrBy: typeof import("@
|
|
54
|
-
NUMMULTBY: typeof import("@
|
|
55
|
-
numMultBy: typeof import("@
|
|
56
|
-
OBJKEYS: typeof import("@
|
|
57
|
-
objKeys: typeof import("@
|
|
58
|
-
OBJLEN: typeof import("@
|
|
59
|
-
objLen: typeof import("@
|
|
60
|
-
RESP: typeof import("@
|
|
61
|
-
resp: typeof import("@
|
|
62
|
-
SET: typeof import("@
|
|
63
|
-
set: typeof import("@
|
|
64
|
-
STRAPPEND: typeof import("@
|
|
65
|
-
strAppend: typeof import("@
|
|
66
|
-
STRLEN: typeof import("@
|
|
67
|
-
strLen: typeof import("@
|
|
68
|
-
TYPE: typeof import("@
|
|
69
|
-
type: typeof import("@
|
|
30
|
+
ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
|
|
31
|
+
arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
|
|
32
|
+
ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
|
|
33
|
+
arrIndex: typeof import("@redis/json/dist/commands/ARRINDEX");
|
|
34
|
+
ARRINSERT: typeof import("@redis/json/dist/commands/ARRINSERT");
|
|
35
|
+
arrInsert: typeof import("@redis/json/dist/commands/ARRINSERT");
|
|
36
|
+
ARRLEN: typeof import("@redis/json/dist/commands/ARRLEN");
|
|
37
|
+
arrLen: typeof import("@redis/json/dist/commands/ARRLEN");
|
|
38
|
+
ARRPOP: typeof import("@redis/json/dist/commands/ARRPOP");
|
|
39
|
+
arrPop: typeof import("@redis/json/dist/commands/ARRPOP");
|
|
40
|
+
ARRTRIM: typeof import("@redis/json/dist/commands/ARRTRIM");
|
|
41
|
+
arrTrim: typeof import("@redis/json/dist/commands/ARRTRIM");
|
|
42
|
+
DEBUG_MEMORY: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
|
|
43
|
+
debugMemory: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
|
|
44
|
+
DEL: typeof import("@redis/json/dist/commands/DEL");
|
|
45
|
+
del: typeof import("@redis/json/dist/commands/DEL");
|
|
46
|
+
FORGET: typeof import("@redis/json/dist/commands/FORGET");
|
|
47
|
+
forget: typeof import("@redis/json/dist/commands/FORGET");
|
|
48
|
+
GET: typeof import("@redis/json/dist/commands/GET");
|
|
49
|
+
get: typeof import("@redis/json/dist/commands/GET");
|
|
50
|
+
MGET: typeof import("@redis/json/dist/commands/MGET");
|
|
51
|
+
mGet: typeof import("@redis/json/dist/commands/MGET");
|
|
52
|
+
NUMINCRBY: typeof import("@redis/json/dist/commands/NUMINCRBY");
|
|
53
|
+
numIncrBy: typeof import("@redis/json/dist/commands/NUMINCRBY");
|
|
54
|
+
NUMMULTBY: typeof import("@redis/json/dist/commands/NUMMULTBY");
|
|
55
|
+
numMultBy: typeof import("@redis/json/dist/commands/NUMMULTBY");
|
|
56
|
+
OBJKEYS: typeof import("@redis/json/dist/commands/OBJKEYS");
|
|
57
|
+
objKeys: typeof import("@redis/json/dist/commands/OBJKEYS");
|
|
58
|
+
OBJLEN: typeof import("@redis/json/dist/commands/OBJLEN");
|
|
59
|
+
objLen: typeof import("@redis/json/dist/commands/OBJLEN");
|
|
60
|
+
RESP: typeof import("@redis/json/dist/commands/RESP");
|
|
61
|
+
resp: typeof import("@redis/json/dist/commands/RESP");
|
|
62
|
+
SET: typeof import("@redis/json/dist/commands/SET");
|
|
63
|
+
set: typeof import("@redis/json/dist/commands/SET");
|
|
64
|
+
STRAPPEND: typeof import("@redis/json/dist/commands/STRAPPEND");
|
|
65
|
+
strAppend: typeof import("@redis/json/dist/commands/STRAPPEND");
|
|
66
|
+
STRLEN: typeof import("@redis/json/dist/commands/STRLEN");
|
|
67
|
+
strLen: typeof import("@redis/json/dist/commands/STRLEN");
|
|
68
|
+
TYPE: typeof import("@redis/json/dist/commands/TYPE");
|
|
69
|
+
type: typeof import("@redis/json/dist/commands/TYPE");
|
|
70
70
|
};
|
|
71
71
|
ft: {
|
|
72
|
-
_LIST: typeof import("@
|
|
73
|
-
_list: typeof import("@
|
|
74
|
-
ALTER: typeof import("@
|
|
75
|
-
alter: typeof import("@
|
|
76
|
-
AGGREGATE: typeof import("@
|
|
77
|
-
aggregate: typeof import("@
|
|
78
|
-
ALIASADD: typeof import("@
|
|
79
|
-
aliasAdd: typeof import("@
|
|
80
|
-
ALIASDEL: typeof import("@
|
|
81
|
-
aliasDel: typeof import("@
|
|
82
|
-
ALIASUPDATE: typeof import("@
|
|
83
|
-
aliasUpdate: typeof import("@
|
|
84
|
-
CONFIG_GET: typeof import("@
|
|
85
|
-
configGet: typeof import("@
|
|
86
|
-
CONFIG_SET: typeof import("@
|
|
87
|
-
configSet: typeof import("@
|
|
88
|
-
CREATE: typeof import("@
|
|
89
|
-
create: typeof import("@
|
|
90
|
-
DICTADD: typeof import("@
|
|
91
|
-
dictAdd: typeof import("@
|
|
92
|
-
DICTDEL: typeof import("@
|
|
93
|
-
dictDel: typeof import("@
|
|
94
|
-
DICTDUMP: typeof import("@
|
|
95
|
-
dictDump: typeof import("@
|
|
96
|
-
DROPINDEX: typeof import("@
|
|
97
|
-
dropIndex: typeof import("@
|
|
98
|
-
EXPLAIN: typeof import("@
|
|
99
|
-
explain: typeof import("@
|
|
100
|
-
EXPLAINCLI: typeof import("@
|
|
101
|
-
explainCli: typeof import("@
|
|
102
|
-
INFO: typeof import("@
|
|
103
|
-
info: typeof import("@
|
|
104
|
-
PROFILESEARCH: typeof import("@
|
|
105
|
-
profileSearch: typeof import("@
|
|
106
|
-
PROFILEAGGREGATE: typeof import("@
|
|
107
|
-
profileAggregate: typeof import("@
|
|
108
|
-
SEARCH: typeof import("@
|
|
109
|
-
search: typeof import("@
|
|
110
|
-
SPELLCHECK: typeof import("@
|
|
111
|
-
spellCheck: typeof import("@
|
|
112
|
-
SUGADD: typeof import("@
|
|
113
|
-
sugAdd: typeof import("@
|
|
114
|
-
SUGDEL: typeof import("@
|
|
115
|
-
sugDel: typeof import("@
|
|
116
|
-
SUGGET_WITHPAYLOADS: typeof import("@
|
|
117
|
-
sugGetWithPayloads: typeof import("@
|
|
118
|
-
SUGGET_WITHSCORES_WITHPAYLOADS: typeof import("@
|
|
119
|
-
sugGetWithScoresWithPayloads: typeof import("@
|
|
120
|
-
SUGGET_WITHSCORES: typeof import("@
|
|
121
|
-
sugGetWithScores: typeof import("@
|
|
122
|
-
SUGGET: typeof import("@
|
|
123
|
-
sugGet: typeof import("@
|
|
124
|
-
SUGLEN: typeof import("@
|
|
125
|
-
sugLen: typeof import("@
|
|
126
|
-
SYNDUMP: typeof import("@
|
|
127
|
-
synDump: typeof import("@
|
|
128
|
-
SYNUPDATE: typeof import("@
|
|
129
|
-
synUpdate: typeof import("@
|
|
130
|
-
TAGVALS: typeof import("@
|
|
131
|
-
tagVals: typeof import("@
|
|
72
|
+
_LIST: typeof import("@redis/search/dist/commands/_LIST");
|
|
73
|
+
_list: typeof import("@redis/search/dist/commands/_LIST");
|
|
74
|
+
ALTER: typeof import("@redis/search/dist/commands/ALTER");
|
|
75
|
+
alter: typeof import("@redis/search/dist/commands/ALTER");
|
|
76
|
+
AGGREGATE: typeof import("@redis/search/dist/commands/AGGREGATE");
|
|
77
|
+
aggregate: typeof import("@redis/search/dist/commands/AGGREGATE");
|
|
78
|
+
ALIASADD: typeof import("@redis/search/dist/commands/ALIASADD");
|
|
79
|
+
aliasAdd: typeof import("@redis/search/dist/commands/ALIASADD");
|
|
80
|
+
ALIASDEL: typeof import("@redis/search/dist/commands/ALIASDEL");
|
|
81
|
+
aliasDel: typeof import("@redis/search/dist/commands/ALIASDEL");
|
|
82
|
+
ALIASUPDATE: typeof import("@redis/search/dist/commands/ALIASUPDATE");
|
|
83
|
+
aliasUpdate: typeof import("@redis/search/dist/commands/ALIASUPDATE");
|
|
84
|
+
CONFIG_GET: typeof import("@redis/search/dist/commands/CONFIG_GET");
|
|
85
|
+
configGet: typeof import("@redis/search/dist/commands/CONFIG_GET");
|
|
86
|
+
CONFIG_SET: typeof import("@redis/search/dist/commands/CONFIG_SET");
|
|
87
|
+
configSet: typeof import("@redis/search/dist/commands/CONFIG_SET");
|
|
88
|
+
CREATE: typeof import("@redis/search/dist/commands/CREATE");
|
|
89
|
+
create: typeof import("@redis/search/dist/commands/CREATE");
|
|
90
|
+
DICTADD: typeof import("@redis/search/dist/commands/DICTADD");
|
|
91
|
+
dictAdd: typeof import("@redis/search/dist/commands/DICTADD");
|
|
92
|
+
DICTDEL: typeof import("@redis/search/dist/commands/DICTDEL");
|
|
93
|
+
dictDel: typeof import("@redis/search/dist/commands/DICTDEL");
|
|
94
|
+
DICTDUMP: typeof import("@redis/search/dist/commands/DICTDUMP");
|
|
95
|
+
dictDump: typeof import("@redis/search/dist/commands/DICTDUMP");
|
|
96
|
+
DROPINDEX: typeof import("@redis/search/dist/commands/DROPINDEX");
|
|
97
|
+
dropIndex: typeof import("@redis/search/dist/commands/DROPINDEX");
|
|
98
|
+
EXPLAIN: typeof import("@redis/search/dist/commands/EXPLAIN");
|
|
99
|
+
explain: typeof import("@redis/search/dist/commands/EXPLAIN");
|
|
100
|
+
EXPLAINCLI: typeof import("@redis/search/dist/commands/EXPLAINCLI");
|
|
101
|
+
explainCli: typeof import("@redis/search/dist/commands/EXPLAINCLI");
|
|
102
|
+
INFO: typeof import("@redis/search/dist/commands/INFO");
|
|
103
|
+
info: typeof import("@redis/search/dist/commands/INFO");
|
|
104
|
+
PROFILESEARCH: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
|
|
105
|
+
profileSearch: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
|
|
106
|
+
PROFILEAGGREGATE: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
|
|
107
|
+
profileAggregate: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
|
|
108
|
+
SEARCH: typeof import("@redis/search/dist/commands/SEARCH");
|
|
109
|
+
search: typeof import("@redis/search/dist/commands/SEARCH");
|
|
110
|
+
SPELLCHECK: typeof import("@redis/search/dist/commands/SPELLCHECK");
|
|
111
|
+
spellCheck: typeof import("@redis/search/dist/commands/SPELLCHECK");
|
|
112
|
+
SUGADD: typeof import("@redis/search/dist/commands/SUGADD");
|
|
113
|
+
sugAdd: typeof import("@redis/search/dist/commands/SUGADD");
|
|
114
|
+
SUGDEL: typeof import("@redis/search/dist/commands/SUGDEL");
|
|
115
|
+
sugDel: typeof import("@redis/search/dist/commands/SUGDEL");
|
|
116
|
+
SUGGET_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
|
|
117
|
+
sugGetWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
|
|
118
|
+
SUGGET_WITHSCORES_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
|
|
119
|
+
sugGetWithScoresWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
|
|
120
|
+
SUGGET_WITHSCORES: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
|
|
121
|
+
sugGetWithScores: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
|
|
122
|
+
SUGGET: typeof import("@redis/search/dist/commands/SUGGET");
|
|
123
|
+
sugGet: typeof import("@redis/search/dist/commands/SUGGET");
|
|
124
|
+
SUGLEN: typeof import("@redis/search/dist/commands/SUGLEN");
|
|
125
|
+
sugLen: typeof import("@redis/search/dist/commands/SUGLEN");
|
|
126
|
+
SYNDUMP: typeof import("@redis/search/dist/commands/SYNDUMP");
|
|
127
|
+
synDump: typeof import("@redis/search/dist/commands/SYNDUMP");
|
|
128
|
+
SYNUPDATE: typeof import("@redis/search/dist/commands/SYNUPDATE");
|
|
129
|
+
synUpdate: typeof import("@redis/search/dist/commands/SYNUPDATE");
|
|
130
|
+
TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
|
|
131
|
+
tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
|
|
132
132
|
};
|
|
133
133
|
ts: {
|
|
134
|
-
ADD: typeof import("@
|
|
135
|
-
add: typeof import("@
|
|
136
|
-
ALTER: typeof import("@
|
|
137
|
-
alter: typeof import("@
|
|
138
|
-
CREATE: typeof import("@
|
|
139
|
-
create: typeof import("@
|
|
140
|
-
CREATERULE: typeof import("@
|
|
141
|
-
createRule: typeof import("@
|
|
142
|
-
DECRBY: typeof import("@
|
|
143
|
-
decrBy: typeof import("@
|
|
144
|
-
DEL: typeof import("@
|
|
145
|
-
del: typeof import("@
|
|
146
|
-
DELETERULE: typeof import("@
|
|
147
|
-
deleteRule: typeof import("@
|
|
148
|
-
GET: typeof import("@
|
|
149
|
-
get: typeof import("@
|
|
150
|
-
INCRBY: typeof import("@
|
|
151
|
-
incrBy: typeof import("@
|
|
152
|
-
INFO_DEBUG: typeof import("@
|
|
153
|
-
infoDebug: typeof import("@
|
|
154
|
-
INFO: typeof import("@
|
|
155
|
-
info: typeof import("@
|
|
156
|
-
MADD: typeof import("@
|
|
157
|
-
mAdd: typeof import("@
|
|
158
|
-
MGET: typeof import("@
|
|
159
|
-
mGet: typeof import("@
|
|
160
|
-
MGET_WITHLABELS: typeof import("@
|
|
161
|
-
mGetWithLabels: typeof import("@
|
|
162
|
-
QUERYINDEX: typeof import("@
|
|
163
|
-
queryIndex: typeof import("@
|
|
164
|
-
RANGE: typeof import("@
|
|
165
|
-
range: typeof import("@
|
|
166
|
-
REVRANGE: typeof import("@
|
|
167
|
-
revRange: typeof import("@
|
|
168
|
-
MRANGE: typeof import("@
|
|
169
|
-
mRange: typeof import("@
|
|
170
|
-
MRANGE_WITHLABELS: typeof import("@
|
|
171
|
-
mRangeWithLabels: typeof import("@
|
|
172
|
-
MREVRANGE: typeof import("@
|
|
173
|
-
mRevRange: typeof import("@
|
|
174
|
-
MREVRANGE_WITHLABELS: typeof import("@
|
|
175
|
-
mRevRangeWithLabels: typeof import("@
|
|
134
|
+
ADD: typeof import("@redis/time-series/dist/commands/ADD");
|
|
135
|
+
add: typeof import("@redis/time-series/dist/commands/ADD");
|
|
136
|
+
ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
|
|
137
|
+
alter: typeof import("@redis/time-series/dist/commands/ALTER");
|
|
138
|
+
CREATE: typeof import("@redis/time-series/dist/commands/CREATE");
|
|
139
|
+
create: typeof import("@redis/time-series/dist/commands/CREATE");
|
|
140
|
+
CREATERULE: typeof import("@redis/time-series/dist/commands/CREATERULE");
|
|
141
|
+
createRule: typeof import("@redis/time-series/dist/commands/CREATERULE");
|
|
142
|
+
DECRBY: typeof import("@redis/time-series/dist/commands/DECRBY");
|
|
143
|
+
decrBy: typeof import("@redis/time-series/dist/commands/DECRBY");
|
|
144
|
+
DEL: typeof import("@redis/time-series/dist/commands/DEL");
|
|
145
|
+
del: typeof import("@redis/time-series/dist/commands/DEL");
|
|
146
|
+
DELETERULE: typeof import("@redis/time-series/dist/commands/DELETERULE");
|
|
147
|
+
deleteRule: typeof import("@redis/time-series/dist/commands/DELETERULE");
|
|
148
|
+
GET: typeof import("@redis/time-series/dist/commands/GET");
|
|
149
|
+
get: typeof import("@redis/time-series/dist/commands/GET");
|
|
150
|
+
INCRBY: typeof import("@redis/time-series/dist/commands/INCRBY");
|
|
151
|
+
incrBy: typeof import("@redis/time-series/dist/commands/INCRBY");
|
|
152
|
+
INFO_DEBUG: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
|
|
153
|
+
infoDebug: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
|
|
154
|
+
INFO: typeof import("@redis/time-series/dist/commands/INFO");
|
|
155
|
+
info: typeof import("@redis/time-series/dist/commands/INFO");
|
|
156
|
+
MADD: typeof import("@redis/time-series/dist/commands/MADD");
|
|
157
|
+
mAdd: typeof import("@redis/time-series/dist/commands/MADD");
|
|
158
|
+
MGET: typeof import("@redis/time-series/dist/commands/MGET");
|
|
159
|
+
mGet: typeof import("@redis/time-series/dist/commands/MGET");
|
|
160
|
+
MGET_WITHLABELS: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
|
|
161
|
+
mGetWithLabels: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
|
|
162
|
+
QUERYINDEX: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
|
|
163
|
+
queryIndex: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
|
|
164
|
+
RANGE: typeof import("@redis/time-series/dist/commands/RANGE");
|
|
165
|
+
range: typeof import("@redis/time-series/dist/commands/RANGE");
|
|
166
|
+
REVRANGE: typeof import("@redis/time-series/dist/commands/REVRANGE");
|
|
167
|
+
revRange: typeof import("@redis/time-series/dist/commands/REVRANGE");
|
|
168
|
+
MRANGE: typeof import("@redis/time-series/dist/commands/MRANGE");
|
|
169
|
+
mRange: typeof import("@redis/time-series/dist/commands/MRANGE");
|
|
170
|
+
MRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
|
|
171
|
+
mRangeWithLabels: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
|
|
172
|
+
MREVRANGE: typeof import("@redis/time-series/dist/commands/MREVRANGE");
|
|
173
|
+
mRevRange: typeof import("@redis/time-series/dist/commands/MREVRANGE");
|
|
174
|
+
MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
175
|
+
mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
176
176
|
};
|
|
177
177
|
bf: {
|
|
178
|
-
ADD: typeof import("@
|
|
179
|
-
add: typeof import("@
|
|
180
|
-
EXISTS: typeof import("@
|
|
181
|
-
exists: typeof import("@
|
|
182
|
-
INFO: typeof import("@
|
|
183
|
-
info: typeof import("@
|
|
184
|
-
INSERT: typeof import("@
|
|
185
|
-
insert: typeof import("@
|
|
186
|
-
LOADCHUNK: typeof import("@
|
|
187
|
-
loadChunk: typeof import("@
|
|
188
|
-
MADD: typeof import("@
|
|
189
|
-
mAdd: typeof import("@
|
|
190
|
-
MEXISTS: typeof import("@
|
|
191
|
-
mExists: typeof import("@
|
|
192
|
-
RESERVE: typeof import("@
|
|
193
|
-
reserve: typeof import("@
|
|
194
|
-
SCANDUMP: typeof import("@
|
|
195
|
-
scanDump: typeof import("@
|
|
178
|
+
ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
|
|
179
|
+
add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
|
|
180
|
+
EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
|
|
181
|
+
exists: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
|
|
182
|
+
INFO: typeof import("@redis/bloom/dist/commands/bloom/INFO");
|
|
183
|
+
info: typeof import("@redis/bloom/dist/commands/bloom/INFO");
|
|
184
|
+
INSERT: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
|
|
185
|
+
insert: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
|
|
186
|
+
LOADCHUNK: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
|
|
187
|
+
loadChunk: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
|
|
188
|
+
MADD: typeof import("@redis/bloom/dist/commands/bloom/MADD");
|
|
189
|
+
mAdd: typeof import("@redis/bloom/dist/commands/bloom/MADD");
|
|
190
|
+
MEXISTS: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
|
|
191
|
+
mExists: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
|
|
192
|
+
RESERVE: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
|
|
193
|
+
reserve: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
|
|
194
|
+
SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
195
|
+
scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
196
196
|
};
|
|
197
197
|
cms: {
|
|
198
|
-
INCRBY: typeof import("@
|
|
199
|
-
incrBy: typeof import("@
|
|
200
|
-
INFO: typeof import("@
|
|
201
|
-
info: typeof import("@
|
|
202
|
-
INITBYDIM: typeof import("@
|
|
203
|
-
initByDim: typeof import("@
|
|
204
|
-
INITBYPROB: typeof import("@
|
|
205
|
-
initByProb: typeof import("@
|
|
206
|
-
MERGE: typeof import("@
|
|
207
|
-
merge: typeof import("@
|
|
208
|
-
QUERY: typeof import("@
|
|
209
|
-
query: typeof import("@
|
|
198
|
+
INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
199
|
+
incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
200
|
+
INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
|
|
201
|
+
info: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
|
|
202
|
+
INITBYDIM: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
|
|
203
|
+
initByDim: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
|
|
204
|
+
INITBYPROB: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
|
|
205
|
+
initByProb: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
|
|
206
|
+
MERGE: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
|
|
207
|
+
merge: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
|
|
208
|
+
QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
209
|
+
query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
210
210
|
};
|
|
211
211
|
cf: {
|
|
212
|
-
ADD: typeof import("@
|
|
213
|
-
add: typeof import("@
|
|
214
|
-
ADDNX: typeof import("@
|
|
215
|
-
addNX: typeof import("@
|
|
216
|
-
COUNT: typeof import("@
|
|
217
|
-
count: typeof import("@
|
|
218
|
-
DEL: typeof import("@
|
|
219
|
-
del: typeof import("@
|
|
220
|
-
EXISTS: typeof import("@
|
|
221
|
-
exists: typeof import("@
|
|
222
|
-
INFO: typeof import("@
|
|
223
|
-
info: typeof import("@
|
|
224
|
-
INSERT: typeof import("@
|
|
225
|
-
insert: typeof import("@
|
|
226
|
-
INSERTNX: typeof import("@
|
|
227
|
-
insertNX: typeof import("@
|
|
228
|
-
LOADCHUNK: typeof import("@
|
|
229
|
-
loadChunk: typeof import("@
|
|
230
|
-
RESERVE: typeof import("@
|
|
231
|
-
reserve: typeof import("@
|
|
232
|
-
SCANDUMP: typeof import("@
|
|
233
|
-
scanDump: typeof import("@
|
|
212
|
+
ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
|
|
213
|
+
add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
|
|
214
|
+
ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
|
|
215
|
+
addNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
|
|
216
|
+
COUNT: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
|
|
217
|
+
count: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
|
|
218
|
+
DEL: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
|
|
219
|
+
del: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
|
|
220
|
+
EXISTS: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
|
|
221
|
+
exists: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
|
|
222
|
+
INFO: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
|
|
223
|
+
info: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
|
|
224
|
+
INSERT: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
|
|
225
|
+
insert: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
|
|
226
|
+
INSERTNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
|
|
227
|
+
insertNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
|
|
228
|
+
LOADCHUNK: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
|
|
229
|
+
loadChunk: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
|
|
230
|
+
RESERVE: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
|
|
231
|
+
reserve: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
|
|
232
|
+
SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
233
|
+
scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
234
234
|
};
|
|
235
235
|
topK: {
|
|
236
|
-
ADD: typeof import("@
|
|
237
|
-
add: typeof import("@
|
|
238
|
-
COUNT: typeof import("@
|
|
239
|
-
count: typeof import("@
|
|
240
|
-
INCRBY: typeof import("@
|
|
241
|
-
incrBy: typeof import("@
|
|
242
|
-
INFO: typeof import("@
|
|
243
|
-
info: typeof import("@
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
236
|
+
ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
|
|
237
|
+
add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
|
|
238
|
+
COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
|
|
239
|
+
count: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
|
|
240
|
+
INCRBY: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
|
|
241
|
+
incrBy: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
|
|
242
|
+
INFO: typeof import("@redis/bloom/dist/commands/top-k/INFO");
|
|
243
|
+
info: typeof import("@redis/bloom/dist/commands/top-k/INFO");
|
|
244
|
+
LIST_WITHCOUNT: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
|
|
245
|
+
listWithCount: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
|
|
246
|
+
LIST: typeof import("@redis/bloom/dist/commands/top-k/LIST");
|
|
247
|
+
list: typeof import("@redis/bloom/dist/commands/top-k/LIST");
|
|
248
|
+
QUERY: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
|
|
249
|
+
query: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
|
|
250
|
+
RESERVE: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
|
|
251
|
+
reserve: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
|
|
250
252
|
};
|
|
251
253
|
};
|
|
252
254
|
export declare type RedisDefaultModules = typeof modules;
|
|
253
|
-
export declare type RedisClientType<M extends RedisModules = RedisDefaultModules, S extends RedisScripts = Record<string, never>> = _RedisClientType<M, S>;
|
|
254
|
-
export declare function createClient<M extends RedisModules, S extends RedisScripts>(options?: RedisClientOptions<M, S>): _RedisClientType<RedisDefaultModules & M, S>;
|
|
255
|
-
export declare type RedisClusterType<M extends RedisModules = RedisDefaultModules, S extends RedisScripts = Record<string, never>> = _RedisClusterType<M, S>;
|
|
256
|
-
export declare function createCluster<M extends RedisModules, S extends RedisScripts>(options: RedisClusterOptions<M, S>): RedisClusterType<RedisDefaultModules & M, S>;
|
|
255
|
+
export declare type RedisClientType<M extends RedisModules = RedisDefaultModules, F extends RedisFunctions = Record<string, never>, S extends RedisScripts = Record<string, never>> = _RedisClientType<M, F, S>;
|
|
256
|
+
export declare function createClient<M extends RedisModules, F extends RedisFunctions, S extends RedisScripts>(options?: RedisClientOptions<M, F, S>): _RedisClientType<RedisDefaultModules & M, F, S>;
|
|
257
|
+
export declare type RedisClusterType<M extends RedisModules = RedisDefaultModules, F extends RedisFunctions = Record<string, never>, S extends RedisScripts = Record<string, never>> = _RedisClusterType<M, F, S>;
|
|
258
|
+
export declare function createCluster<M extends RedisModules, F extends RedisFunctions, S extends RedisScripts>(options: RedisClusterOptions<M, F, S>): RedisClusterType<RedisDefaultModules & M, F, S>;
|
package/dist/index.js
CHANGED
|
@@ -15,18 +15,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.createCluster = exports.createClient = void 0;
|
|
18
|
-
const client_1 = require("@
|
|
19
|
-
const bloom_1 = require("@
|
|
20
|
-
const graph_1 = require("@
|
|
21
|
-
const json_1 = require("@
|
|
22
|
-
const search_1 = require("@
|
|
23
|
-
const time_series_1 = require("@
|
|
24
|
-
__exportStar(require("@
|
|
25
|
-
__exportStar(require("@
|
|
26
|
-
__exportStar(require("@
|
|
27
|
-
__exportStar(require("@
|
|
28
|
-
__exportStar(require("@
|
|
29
|
-
__exportStar(require("@
|
|
18
|
+
const client_1 = require("@redis/client");
|
|
19
|
+
const bloom_1 = require("@redis/bloom");
|
|
20
|
+
const graph_1 = require("@redis/graph");
|
|
21
|
+
const json_1 = require("@redis/json");
|
|
22
|
+
const search_1 = require("@redis/search");
|
|
23
|
+
const time_series_1 = require("@redis/time-series");
|
|
24
|
+
__exportStar(require("@redis/client"), exports);
|
|
25
|
+
__exportStar(require("@redis/bloom"), exports);
|
|
26
|
+
__exportStar(require("@redis/graph"), exports);
|
|
27
|
+
__exportStar(require("@redis/json"), exports);
|
|
28
|
+
__exportStar(require("@redis/search"), exports);
|
|
29
|
+
__exportStar(require("@redis/time-series"), exports);
|
|
30
30
|
const modules = {
|
|
31
31
|
...bloom_1.default,
|
|
32
32
|
graph: graph_1.default,
|
|
@@ -39,7 +39,7 @@ function createClient(options) {
|
|
|
39
39
|
...options,
|
|
40
40
|
modules: {
|
|
41
41
|
...modules,
|
|
42
|
-
...options
|
|
42
|
+
...options?.modules
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
@@ -49,7 +49,7 @@ function createCluster(options) {
|
|
|
49
49
|
...options,
|
|
50
50
|
modules: {
|
|
51
51
|
...modules,
|
|
52
|
-
...options
|
|
52
|
+
...options?.modules
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
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.0
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"gh-pages": "gh-pages -d ./documentation -e ./documentation -u 'documentation-bot <documentation@bot>'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
26
|
+
"@redis/bloom": "1.0.2",
|
|
27
|
+
"@redis/client": "1.2.0",
|
|
28
|
+
"@redis/graph": "1.0.1",
|
|
29
|
+
"@redis/json": "1.0.3",
|
|
30
|
+
"@redis/search": "1.0.6",
|
|
31
|
+
"@redis/time-series": "1.0.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tsconfig/
|
|
35
|
-
"gh-pages": "^
|
|
36
|
-
"release-it": "^
|
|
37
|
-
"typescript": "^4.
|
|
34
|
+
"@tsconfig/node14": "^1.0.3",
|
|
35
|
+
"gh-pages": "^4.0.0",
|
|
36
|
+
"release-it": "^15.1.1",
|
|
37
|
+
"typescript": "^4.7.4"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|