@duvdu-v1/duvdu 1.1.271 → 1.1.272

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.
@@ -1,3 +1,2 @@
1
- import IORedis from 'ioredis';
2
- declare const bullRedis: IORedis;
1
+ declare const bullRedis: import("ioredis/built/Redis").default;
3
2
  export { bullRedis };
@@ -1,22 +1,22 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- var _a, _b, _c;
2
+ // // bullmq-redis.ts
3
+ // import IORedis from 'ioredis';
6
4
  Object.defineProperty(exports, "__esModule", { value: true });
7
5
  exports.bullRedis = void 0;
6
+ // const bullRedis = new IORedis({
7
+ // host: process.env.REDIS_HOST?.split('://')[1]?.split(':')[0] || 'localhost',
8
+ // port: parseInt(process.env.REDIS_HOST?.split(':').pop() || '6379'),
9
+ // password: process.env.REDIS_PASS,
10
+ // maxRetriesPerRequest: null,
11
+ // enableReadyCheck: false,
12
+ // retryStrategy: (times) => {
13
+ // if (times > 3) return null;
14
+ // return Math.min(times * 100, 3000);
15
+ // },
16
+ // });
17
+ // export { bullRedis };
8
18
  // bullmq-redis.ts
9
- const ioredis_1 = __importDefault(require("ioredis"));
10
- const bullRedis = new ioredis_1.default({
11
- host: ((_b = (_a = process.env.REDIS_HOST) === null || _a === void 0 ? void 0 : _a.split('://')[1]) === null || _b === void 0 ? void 0 : _b.split(':')[0]) || 'localhost',
12
- port: parseInt(((_c = process.env.REDIS_HOST) === null || _c === void 0 ? void 0 : _c.split(':').pop()) || '6379'),
13
- password: process.env.REDIS_PASS,
14
- maxRetriesPerRequest: null,
15
- enableReadyCheck: false,
16
- retryStrategy: (times) => {
17
- if (times > 3)
18
- return null;
19
- return Math.min(times * 100, 3000);
20
- },
21
- });
19
+ const redis_connection_1 = require("./redis-connection");
20
+ // Use the existing Redis client from redis-connection.ts
21
+ const bullRedis = (0, redis_connection_1.getRedisClient)();
22
22
  exports.bullRedis = bullRedis;
@@ -1,583 +1,6 @@
1
1
  import RedisStore from 'connect-redis';
2
- export declare const getRedisClient: () => import("@redis/client").RedisClientType<{
3
- graph: {
4
- CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
5
- configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
6
- CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
7
- configSet: typeof import("@redis/graph/dist/commands/CONFIG_SET");
8
- DELETE: typeof import("@redis/graph/dist/commands/DELETE");
9
- delete: typeof import("@redis/graph/dist/commands/DELETE");
10
- EXPLAIN: typeof import("@redis/graph/dist/commands/EXPLAIN");
11
- explain: typeof import("@redis/graph/dist/commands/EXPLAIN");
12
- LIST: typeof import("@redis/graph/dist/commands/LIST");
13
- list: typeof import("@redis/graph/dist/commands/LIST");
14
- PROFILE: typeof import("@redis/graph/dist/commands/PROFILE");
15
- profile: typeof import("@redis/graph/dist/commands/PROFILE");
16
- QUERY: typeof import("@redis/graph/dist/commands/QUERY");
17
- query: typeof import("@redis/graph/dist/commands/QUERY");
18
- RO_QUERY: typeof import("@redis/graph/dist/commands/RO_QUERY");
19
- roQuery: typeof import("@redis/graph/dist/commands/RO_QUERY");
20
- SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
21
- slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
22
- };
23
- json: {
24
- ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
25
- arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
26
- ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
27
- arrIndex: typeof import("@redis/json/dist/commands/ARRINDEX");
28
- ARRINSERT: typeof import("@redis/json/dist/commands/ARRINSERT");
29
- arrInsert: typeof import("@redis/json/dist/commands/ARRINSERT");
30
- ARRLEN: typeof import("@redis/json/dist/commands/ARRLEN");
31
- arrLen: typeof import("@redis/json/dist/commands/ARRLEN");
32
- ARRPOP: typeof import("@redis/json/dist/commands/ARRPOP");
33
- arrPop: typeof import("@redis/json/dist/commands/ARRPOP");
34
- ARRTRIM: typeof import("@redis/json/dist/commands/ARRTRIM");
35
- arrTrim: typeof import("@redis/json/dist/commands/ARRTRIM");
36
- DEBUG_MEMORY: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
37
- debugMemory: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
38
- DEL: typeof import("@redis/json/dist/commands/DEL");
39
- del: typeof import("@redis/json/dist/commands/DEL");
40
- FORGET: typeof import("@redis/json/dist/commands/FORGET");
41
- forget: typeof import("@redis/json/dist/commands/FORGET");
42
- GET: typeof import("@redis/json/dist/commands/GET");
43
- get: typeof import("@redis/json/dist/commands/GET");
44
- MERGE: typeof import("@redis/json/dist/commands/MERGE");
45
- merge: typeof import("@redis/json/dist/commands/MERGE");
46
- MGET: typeof import("@redis/json/dist/commands/MGET");
47
- mGet: typeof import("@redis/json/dist/commands/MGET");
48
- MSET: typeof import("@redis/json/dist/commands/MSET");
49
- mSet: typeof import("@redis/json/dist/commands/MSET");
50
- NUMINCRBY: typeof import("@redis/json/dist/commands/NUMINCRBY");
51
- numIncrBy: typeof import("@redis/json/dist/commands/NUMINCRBY");
52
- NUMMULTBY: typeof import("@redis/json/dist/commands/NUMMULTBY");
53
- numMultBy: typeof import("@redis/json/dist/commands/NUMMULTBY");
54
- OBJKEYS: typeof import("@redis/json/dist/commands/OBJKEYS");
55
- objKeys: typeof import("@redis/json/dist/commands/OBJKEYS");
56
- OBJLEN: typeof import("@redis/json/dist/commands/OBJLEN");
57
- objLen: typeof import("@redis/json/dist/commands/OBJLEN");
58
- RESP: typeof import("@redis/json/dist/commands/RESP");
59
- resp: typeof import("@redis/json/dist/commands/RESP");
60
- SET: typeof import("@redis/json/dist/commands/SET");
61
- set: typeof import("@redis/json/dist/commands/SET");
62
- STRAPPEND: typeof import("@redis/json/dist/commands/STRAPPEND");
63
- strAppend: typeof import("@redis/json/dist/commands/STRAPPEND");
64
- STRLEN: typeof import("@redis/json/dist/commands/STRLEN");
65
- strLen: typeof import("@redis/json/dist/commands/STRLEN");
66
- TYPE: typeof import("@redis/json/dist/commands/TYPE");
67
- type: typeof import("@redis/json/dist/commands/TYPE");
68
- };
69
- ft: {
70
- _LIST: typeof import("@redis/search/dist/commands/_LIST");
71
- _list: typeof import("@redis/search/dist/commands/_LIST");
72
- ALTER: typeof import("@redis/search/dist/commands/ALTER");
73
- alter: typeof import("@redis/search/dist/commands/ALTER");
74
- AGGREGATE_WITHCURSOR: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
75
- aggregateWithCursor: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
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
- CURSOR_DEL: typeof import("@redis/search/dist/commands/CURSOR_DEL");
91
- cursorDel: typeof import("@redis/search/dist/commands/CURSOR_DEL");
92
- CURSOR_READ: typeof import("@redis/search/dist/commands/CURSOR_READ");
93
- cursorRead: typeof import("@redis/search/dist/commands/CURSOR_READ");
94
- DICTADD: typeof import("@redis/search/dist/commands/DICTADD");
95
- dictAdd: typeof import("@redis/search/dist/commands/DICTADD");
96
- DICTDEL: typeof import("@redis/search/dist/commands/DICTDEL");
97
- dictDel: typeof import("@redis/search/dist/commands/DICTDEL");
98
- DICTDUMP: typeof import("@redis/search/dist/commands/DICTDUMP");
99
- dictDump: typeof import("@redis/search/dist/commands/DICTDUMP");
100
- DROPINDEX: typeof import("@redis/search/dist/commands/DROPINDEX");
101
- dropIndex: typeof import("@redis/search/dist/commands/DROPINDEX");
102
- EXPLAIN: typeof import("@redis/search/dist/commands/EXPLAIN");
103
- explain: typeof import("@redis/search/dist/commands/EXPLAIN");
104
- EXPLAINCLI: typeof import("@redis/search/dist/commands/EXPLAINCLI");
105
- explainCli: typeof import("@redis/search/dist/commands/EXPLAINCLI");
106
- INFO: typeof import("@redis/search/dist/commands/INFO");
107
- info: typeof import("@redis/search/dist/commands/INFO");
108
- PROFILESEARCH: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
109
- profileSearch: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
110
- PROFILEAGGREGATE: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
111
- profileAggregate: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
112
- SEARCH: typeof import("@redis/search/dist/commands/SEARCH");
113
- search: typeof import("@redis/search/dist/commands/SEARCH");
114
- SEARCH_NOCONTENT: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
115
- searchNoContent: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
116
- SPELLCHECK: typeof import("@redis/search/dist/commands/SPELLCHECK");
117
- spellCheck: typeof import("@redis/search/dist/commands/SPELLCHECK");
118
- SUGADD: typeof import("@redis/search/dist/commands/SUGADD");
119
- sugAdd: typeof import("@redis/search/dist/commands/SUGADD");
120
- SUGDEL: typeof import("@redis/search/dist/commands/SUGDEL");
121
- sugDel: typeof import("@redis/search/dist/commands/SUGDEL");
122
- SUGGET_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
123
- sugGetWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
124
- SUGGET_WITHSCORES_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
125
- sugGetWithScoresWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
126
- SUGGET_WITHSCORES: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
127
- sugGetWithScores: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
128
- SUGGET: typeof import("@redis/search/dist/commands/SUGGET");
129
- sugGet: typeof import("@redis/search/dist/commands/SUGGET");
130
- SUGLEN: typeof import("@redis/search/dist/commands/SUGLEN");
131
- sugLen: typeof import("@redis/search/dist/commands/SUGLEN");
132
- SYNDUMP: typeof import("@redis/search/dist/commands/SYNDUMP");
133
- synDump: typeof import("@redis/search/dist/commands/SYNDUMP");
134
- SYNUPDATE: typeof import("@redis/search/dist/commands/SYNUPDATE");
135
- synUpdate: typeof import("@redis/search/dist/commands/SYNUPDATE");
136
- TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
137
- tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
138
- };
139
- ts: {
140
- ADD: typeof import("@redis/time-series/dist/commands/ADD");
141
- add: typeof import("@redis/time-series/dist/commands/ADD");
142
- ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
143
- alter: typeof import("@redis/time-series/dist/commands/ALTER");
144
- CREATE: typeof import("@redis/time-series/dist/commands/CREATE");
145
- create: typeof import("@redis/time-series/dist/commands/CREATE");
146
- CREATERULE: typeof import("@redis/time-series/dist/commands/CREATERULE");
147
- createRule: typeof import("@redis/time-series/dist/commands/CREATERULE");
148
- DECRBY: typeof import("@redis/time-series/dist/commands/DECRBY");
149
- decrBy: typeof import("@redis/time-series/dist/commands/DECRBY");
150
- DEL: typeof import("@redis/time-series/dist/commands/DEL");
151
- del: typeof import("@redis/time-series/dist/commands/DEL");
152
- DELETERULE: typeof import("@redis/time-series/dist/commands/DELETERULE");
153
- deleteRule: typeof import("@redis/time-series/dist/commands/DELETERULE");
154
- GET: typeof import("@redis/time-series/dist/commands/GET");
155
- get: typeof import("@redis/time-series/dist/commands/GET");
156
- INCRBY: typeof import("@redis/time-series/dist/commands/INCRBY");
157
- incrBy: typeof import("@redis/time-series/dist/commands/INCRBY");
158
- INFO_DEBUG: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
159
- infoDebug: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
160
- INFO: typeof import("@redis/time-series/dist/commands/INFO");
161
- info: typeof import("@redis/time-series/dist/commands/INFO");
162
- MADD: typeof import("@redis/time-series/dist/commands/MADD");
163
- mAdd: typeof import("@redis/time-series/dist/commands/MADD");
164
- MGET: typeof import("@redis/time-series/dist/commands/MGET");
165
- mGet: typeof import("@redis/time-series/dist/commands/MGET");
166
- MGET_WITHLABELS: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
167
- mGetWithLabels: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
168
- QUERYINDEX: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
169
- queryIndex: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
170
- RANGE: typeof import("@redis/time-series/dist/commands/RANGE");
171
- range: typeof import("@redis/time-series/dist/commands/RANGE");
172
- REVRANGE: typeof import("@redis/time-series/dist/commands/REVRANGE");
173
- revRange: typeof import("@redis/time-series/dist/commands/REVRANGE");
174
- MRANGE: typeof import("@redis/time-series/dist/commands/MRANGE");
175
- mRange: typeof import("@redis/time-series/dist/commands/MRANGE");
176
- MRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
177
- mRangeWithLabels: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
178
- MREVRANGE: typeof import("@redis/time-series/dist/commands/MREVRANGE");
179
- mRevRange: typeof import("@redis/time-series/dist/commands/MREVRANGE");
180
- MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
181
- mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
182
- };
183
- bf: {
184
- ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
185
- add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
186
- CARD: typeof import("@redis/bloom/dist/commands/bloom/CARD");
187
- card: typeof import("@redis/bloom/dist/commands/bloom/CARD");
188
- EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
189
- exists: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
190
- INFO: typeof import("@redis/bloom/dist/commands/bloom/INFO");
191
- info: typeof import("@redis/bloom/dist/commands/bloom/INFO");
192
- INSERT: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
193
- insert: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
194
- LOADCHUNK: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
195
- loadChunk: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
196
- MADD: typeof import("@redis/bloom/dist/commands/bloom/MADD");
197
- mAdd: typeof import("@redis/bloom/dist/commands/bloom/MADD");
198
- MEXISTS: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
199
- mExists: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
200
- RESERVE: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
201
- reserve: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
202
- SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
203
- scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
204
- };
205
- cms: {
206
- INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
207
- incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
208
- INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
209
- info: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
210
- INITBYDIM: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
211
- initByDim: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
212
- INITBYPROB: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
213
- initByProb: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
214
- MERGE: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
215
- merge: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
216
- QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
217
- query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
218
- };
219
- cf: {
220
- ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
221
- add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
222
- ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
223
- addNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
224
- COUNT: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
225
- count: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
226
- DEL: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
227
- del: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
228
- EXISTS: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
229
- exists: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
230
- INFO: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
231
- info: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
232
- INSERT: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
233
- insert: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
234
- INSERTNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
235
- insertNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
236
- LOADCHUNK: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
237
- loadChunk: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
238
- RESERVE: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
239
- reserve: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
240
- SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
241
- scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
242
- };
243
- tDigest: {
244
- ADD: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
245
- add: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
246
- BYRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
247
- byRank: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
248
- BYREVRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
249
- byRevRank: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
250
- CDF: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
251
- cdf: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
252
- CREATE: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
253
- create: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
254
- INFO: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
255
- info: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
256
- MAX: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
257
- max: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
258
- MERGE: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
259
- merge: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
260
- MIN: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
261
- min: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
262
- QUANTILE: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
263
- quantile: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
264
- RANK: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
265
- rank: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
266
- RESET: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
267
- reset: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
268
- REVRANK: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
269
- revRank: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
270
- TRIMMED_MEAN: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
271
- trimmedMean: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
272
- };
273
- topK: {
274
- ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
275
- add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
276
- COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
277
- count: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
278
- INCRBY: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
279
- incrBy: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
280
- INFO: typeof import("@redis/bloom/dist/commands/top-k/INFO");
281
- info: typeof import("@redis/bloom/dist/commands/top-k/INFO");
282
- LIST_WITHCOUNT: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
283
- listWithCount: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
284
- LIST: typeof import("@redis/bloom/dist/commands/top-k/LIST");
285
- list: typeof import("@redis/bloom/dist/commands/top-k/LIST");
286
- QUERY: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
287
- query: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
288
- RESERVE: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
289
- reserve: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
290
- };
291
- } & import("redis").RedisModules, import("redis").RedisFunctions, import("redis").RedisScripts>;
292
- export declare const redisConnection: (url: string, password: string) => Promise<import("@redis/client").RedisClientType<{
293
- graph: {
294
- CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
295
- configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
296
- CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
297
- configSet: typeof import("@redis/graph/dist/commands/CONFIG_SET");
298
- DELETE: typeof import("@redis/graph/dist/commands/DELETE");
299
- delete: typeof import("@redis/graph/dist/commands/DELETE");
300
- EXPLAIN: typeof import("@redis/graph/dist/commands/EXPLAIN");
301
- explain: typeof import("@redis/graph/dist/commands/EXPLAIN");
302
- LIST: typeof import("@redis/graph/dist/commands/LIST");
303
- list: typeof import("@redis/graph/dist/commands/LIST");
304
- PROFILE: typeof import("@redis/graph/dist/commands/PROFILE");
305
- profile: typeof import("@redis/graph/dist/commands/PROFILE");
306
- QUERY: typeof import("@redis/graph/dist/commands/QUERY");
307
- query: typeof import("@redis/graph/dist/commands/QUERY");
308
- RO_QUERY: typeof import("@redis/graph/dist/commands/RO_QUERY");
309
- roQuery: typeof import("@redis/graph/dist/commands/RO_QUERY");
310
- SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
311
- slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
312
- };
313
- json: {
314
- ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
315
- arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
316
- ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
317
- arrIndex: typeof import("@redis/json/dist/commands/ARRINDEX");
318
- ARRINSERT: typeof import("@redis/json/dist/commands/ARRINSERT");
319
- arrInsert: typeof import("@redis/json/dist/commands/ARRINSERT");
320
- ARRLEN: typeof import("@redis/json/dist/commands/ARRLEN");
321
- arrLen: typeof import("@redis/json/dist/commands/ARRLEN");
322
- ARRPOP: typeof import("@redis/json/dist/commands/ARRPOP");
323
- arrPop: typeof import("@redis/json/dist/commands/ARRPOP");
324
- ARRTRIM: typeof import("@redis/json/dist/commands/ARRTRIM");
325
- arrTrim: typeof import("@redis/json/dist/commands/ARRTRIM");
326
- DEBUG_MEMORY: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
327
- debugMemory: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
328
- DEL: typeof import("@redis/json/dist/commands/DEL");
329
- del: typeof import("@redis/json/dist/commands/DEL");
330
- FORGET: typeof import("@redis/json/dist/commands/FORGET");
331
- forget: typeof import("@redis/json/dist/commands/FORGET");
332
- GET: typeof import("@redis/json/dist/commands/GET");
333
- get: typeof import("@redis/json/dist/commands/GET");
334
- MERGE: typeof import("@redis/json/dist/commands/MERGE");
335
- merge: typeof import("@redis/json/dist/commands/MERGE");
336
- MGET: typeof import("@redis/json/dist/commands/MGET");
337
- mGet: typeof import("@redis/json/dist/commands/MGET");
338
- MSET: typeof import("@redis/json/dist/commands/MSET");
339
- mSet: typeof import("@redis/json/dist/commands/MSET");
340
- NUMINCRBY: typeof import("@redis/json/dist/commands/NUMINCRBY");
341
- numIncrBy: typeof import("@redis/json/dist/commands/NUMINCRBY");
342
- NUMMULTBY: typeof import("@redis/json/dist/commands/NUMMULTBY");
343
- numMultBy: typeof import("@redis/json/dist/commands/NUMMULTBY");
344
- OBJKEYS: typeof import("@redis/json/dist/commands/OBJKEYS");
345
- objKeys: typeof import("@redis/json/dist/commands/OBJKEYS");
346
- OBJLEN: typeof import("@redis/json/dist/commands/OBJLEN");
347
- objLen: typeof import("@redis/json/dist/commands/OBJLEN");
348
- RESP: typeof import("@redis/json/dist/commands/RESP");
349
- resp: typeof import("@redis/json/dist/commands/RESP");
350
- SET: typeof import("@redis/json/dist/commands/SET");
351
- set: typeof import("@redis/json/dist/commands/SET");
352
- STRAPPEND: typeof import("@redis/json/dist/commands/STRAPPEND");
353
- strAppend: typeof import("@redis/json/dist/commands/STRAPPEND");
354
- STRLEN: typeof import("@redis/json/dist/commands/STRLEN");
355
- strLen: typeof import("@redis/json/dist/commands/STRLEN");
356
- TYPE: typeof import("@redis/json/dist/commands/TYPE");
357
- type: typeof import("@redis/json/dist/commands/TYPE");
358
- };
359
- ft: {
360
- _LIST: typeof import("@redis/search/dist/commands/_LIST");
361
- _list: typeof import("@redis/search/dist/commands/_LIST");
362
- ALTER: typeof import("@redis/search/dist/commands/ALTER");
363
- alter: typeof import("@redis/search/dist/commands/ALTER");
364
- AGGREGATE_WITHCURSOR: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
365
- aggregateWithCursor: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
366
- AGGREGATE: typeof import("@redis/search/dist/commands/AGGREGATE");
367
- aggregate: typeof import("@redis/search/dist/commands/AGGREGATE");
368
- ALIASADD: typeof import("@redis/search/dist/commands/ALIASADD");
369
- aliasAdd: typeof import("@redis/search/dist/commands/ALIASADD");
370
- ALIASDEL: typeof import("@redis/search/dist/commands/ALIASDEL");
371
- aliasDel: typeof import("@redis/search/dist/commands/ALIASDEL");
372
- ALIASUPDATE: typeof import("@redis/search/dist/commands/ALIASUPDATE");
373
- aliasUpdate: typeof import("@redis/search/dist/commands/ALIASUPDATE");
374
- CONFIG_GET: typeof import("@redis/search/dist/commands/CONFIG_GET");
375
- configGet: typeof import("@redis/search/dist/commands/CONFIG_GET");
376
- CONFIG_SET: typeof import("@redis/search/dist/commands/CONFIG_SET");
377
- configSet: typeof import("@redis/search/dist/commands/CONFIG_SET");
378
- CREATE: typeof import("@redis/search/dist/commands/CREATE");
379
- create: typeof import("@redis/search/dist/commands/CREATE");
380
- CURSOR_DEL: typeof import("@redis/search/dist/commands/CURSOR_DEL");
381
- cursorDel: typeof import("@redis/search/dist/commands/CURSOR_DEL");
382
- CURSOR_READ: typeof import("@redis/search/dist/commands/CURSOR_READ");
383
- cursorRead: typeof import("@redis/search/dist/commands/CURSOR_READ");
384
- DICTADD: typeof import("@redis/search/dist/commands/DICTADD");
385
- dictAdd: typeof import("@redis/search/dist/commands/DICTADD");
386
- DICTDEL: typeof import("@redis/search/dist/commands/DICTDEL");
387
- dictDel: typeof import("@redis/search/dist/commands/DICTDEL");
388
- DICTDUMP: typeof import("@redis/search/dist/commands/DICTDUMP");
389
- dictDump: typeof import("@redis/search/dist/commands/DICTDUMP");
390
- DROPINDEX: typeof import("@redis/search/dist/commands/DROPINDEX");
391
- dropIndex: typeof import("@redis/search/dist/commands/DROPINDEX");
392
- EXPLAIN: typeof import("@redis/search/dist/commands/EXPLAIN");
393
- explain: typeof import("@redis/search/dist/commands/EXPLAIN");
394
- EXPLAINCLI: typeof import("@redis/search/dist/commands/EXPLAINCLI");
395
- explainCli: typeof import("@redis/search/dist/commands/EXPLAINCLI");
396
- INFO: typeof import("@redis/search/dist/commands/INFO");
397
- info: typeof import("@redis/search/dist/commands/INFO");
398
- PROFILESEARCH: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
399
- profileSearch: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
400
- PROFILEAGGREGATE: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
401
- profileAggregate: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
402
- SEARCH: typeof import("@redis/search/dist/commands/SEARCH");
403
- search: typeof import("@redis/search/dist/commands/SEARCH");
404
- SEARCH_NOCONTENT: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
405
- searchNoContent: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
406
- SPELLCHECK: typeof import("@redis/search/dist/commands/SPELLCHECK");
407
- spellCheck: typeof import("@redis/search/dist/commands/SPELLCHECK");
408
- SUGADD: typeof import("@redis/search/dist/commands/SUGADD");
409
- sugAdd: typeof import("@redis/search/dist/commands/SUGADD");
410
- SUGDEL: typeof import("@redis/search/dist/commands/SUGDEL");
411
- sugDel: typeof import("@redis/search/dist/commands/SUGDEL");
412
- SUGGET_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
413
- sugGetWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
414
- SUGGET_WITHSCORES_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
415
- sugGetWithScoresWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
416
- SUGGET_WITHSCORES: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
417
- sugGetWithScores: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
418
- SUGGET: typeof import("@redis/search/dist/commands/SUGGET");
419
- sugGet: typeof import("@redis/search/dist/commands/SUGGET");
420
- SUGLEN: typeof import("@redis/search/dist/commands/SUGLEN");
421
- sugLen: typeof import("@redis/search/dist/commands/SUGLEN");
422
- SYNDUMP: typeof import("@redis/search/dist/commands/SYNDUMP");
423
- synDump: typeof import("@redis/search/dist/commands/SYNDUMP");
424
- SYNUPDATE: typeof import("@redis/search/dist/commands/SYNUPDATE");
425
- synUpdate: typeof import("@redis/search/dist/commands/SYNUPDATE");
426
- TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
427
- tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
428
- };
429
- ts: {
430
- ADD: typeof import("@redis/time-series/dist/commands/ADD");
431
- add: typeof import("@redis/time-series/dist/commands/ADD");
432
- ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
433
- alter: typeof import("@redis/time-series/dist/commands/ALTER");
434
- CREATE: typeof import("@redis/time-series/dist/commands/CREATE");
435
- create: typeof import("@redis/time-series/dist/commands/CREATE");
436
- CREATERULE: typeof import("@redis/time-series/dist/commands/CREATERULE");
437
- createRule: typeof import("@redis/time-series/dist/commands/CREATERULE");
438
- DECRBY: typeof import("@redis/time-series/dist/commands/DECRBY");
439
- decrBy: typeof import("@redis/time-series/dist/commands/DECRBY");
440
- DEL: typeof import("@redis/time-series/dist/commands/DEL");
441
- del: typeof import("@redis/time-series/dist/commands/DEL");
442
- DELETERULE: typeof import("@redis/time-series/dist/commands/DELETERULE");
443
- deleteRule: typeof import("@redis/time-series/dist/commands/DELETERULE");
444
- GET: typeof import("@redis/time-series/dist/commands/GET");
445
- get: typeof import("@redis/time-series/dist/commands/GET");
446
- INCRBY: typeof import("@redis/time-series/dist/commands/INCRBY");
447
- incrBy: typeof import("@redis/time-series/dist/commands/INCRBY");
448
- INFO_DEBUG: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
449
- infoDebug: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
450
- INFO: typeof import("@redis/time-series/dist/commands/INFO");
451
- info: typeof import("@redis/time-series/dist/commands/INFO");
452
- MADD: typeof import("@redis/time-series/dist/commands/MADD");
453
- mAdd: typeof import("@redis/time-series/dist/commands/MADD");
454
- MGET: typeof import("@redis/time-series/dist/commands/MGET");
455
- mGet: typeof import("@redis/time-series/dist/commands/MGET");
456
- MGET_WITHLABELS: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
457
- mGetWithLabels: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
458
- QUERYINDEX: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
459
- queryIndex: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
460
- RANGE: typeof import("@redis/time-series/dist/commands/RANGE");
461
- range: typeof import("@redis/time-series/dist/commands/RANGE");
462
- REVRANGE: typeof import("@redis/time-series/dist/commands/REVRANGE");
463
- revRange: typeof import("@redis/time-series/dist/commands/REVRANGE");
464
- MRANGE: typeof import("@redis/time-series/dist/commands/MRANGE");
465
- mRange: typeof import("@redis/time-series/dist/commands/MRANGE");
466
- MRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
467
- mRangeWithLabels: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
468
- MREVRANGE: typeof import("@redis/time-series/dist/commands/MREVRANGE");
469
- mRevRange: typeof import("@redis/time-series/dist/commands/MREVRANGE");
470
- MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
471
- mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
472
- };
473
- bf: {
474
- ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
475
- add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
476
- CARD: typeof import("@redis/bloom/dist/commands/bloom/CARD");
477
- card: typeof import("@redis/bloom/dist/commands/bloom/CARD");
478
- EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
479
- exists: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
480
- INFO: typeof import("@redis/bloom/dist/commands/bloom/INFO");
481
- info: typeof import("@redis/bloom/dist/commands/bloom/INFO");
482
- INSERT: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
483
- insert: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
484
- LOADCHUNK: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
485
- loadChunk: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
486
- MADD: typeof import("@redis/bloom/dist/commands/bloom/MADD");
487
- mAdd: typeof import("@redis/bloom/dist/commands/bloom/MADD");
488
- MEXISTS: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
489
- mExists: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
490
- RESERVE: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
491
- reserve: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
492
- SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
493
- scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
494
- };
495
- cms: {
496
- INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
497
- incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
498
- INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
499
- info: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
500
- INITBYDIM: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
501
- initByDim: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
502
- INITBYPROB: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
503
- initByProb: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
504
- MERGE: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
505
- merge: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
506
- QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
507
- query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
508
- };
509
- cf: {
510
- ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
511
- add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
512
- ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
513
- addNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
514
- COUNT: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
515
- count: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
516
- DEL: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
517
- del: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
518
- EXISTS: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
519
- exists: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
520
- INFO: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
521
- info: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
522
- INSERT: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
523
- insert: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
524
- INSERTNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
525
- insertNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
526
- LOADCHUNK: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
527
- loadChunk: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
528
- RESERVE: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
529
- reserve: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
530
- SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
531
- scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
532
- };
533
- tDigest: {
534
- ADD: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
535
- add: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
536
- BYRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
537
- byRank: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
538
- BYREVRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
539
- byRevRank: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
540
- CDF: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
541
- cdf: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
542
- CREATE: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
543
- create: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
544
- INFO: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
545
- info: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
546
- MAX: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
547
- max: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
548
- MERGE: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
549
- merge: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
550
- MIN: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
551
- min: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
552
- QUANTILE: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
553
- quantile: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
554
- RANK: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
555
- rank: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
556
- RESET: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
557
- reset: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
558
- REVRANK: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
559
- revRank: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
560
- TRIMMED_MEAN: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
561
- trimmedMean: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
562
- };
563
- topK: {
564
- ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
565
- add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
566
- COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
567
- count: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
568
- INCRBY: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
569
- incrBy: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
570
- INFO: typeof import("@redis/bloom/dist/commands/top-k/INFO");
571
- info: typeof import("@redis/bloom/dist/commands/top-k/INFO");
572
- LIST_WITHCOUNT: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
573
- listWithCount: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
574
- LIST: typeof import("@redis/bloom/dist/commands/top-k/LIST");
575
- list: typeof import("@redis/bloom/dist/commands/top-k/LIST");
576
- QUERY: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
577
- query: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
578
- RESERVE: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
579
- reserve: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
580
- };
581
- } & import("redis").RedisModules, import("redis").RedisFunctions, import("redis").RedisScripts>>;
582
- export declare const sessionStore: (url: string, password: string) => Promise<RedisStore>;
2
+ import Redis from 'ioredis';
3
+ export declare const getRedisClient: () => Redis;
4
+ export declare const redisConnection: () => Promise<Redis>;
5
+ export declare const sessionStore: () => Promise<RedisStore>;
583
6
  export declare const cleanupRedis: () => Promise<void>;
@@ -14,45 +14,128 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.cleanupRedis = exports.sessionStore = exports.redisConnection = exports.getRedisClient = void 0;
16
16
  const connect_redis_1 = __importDefault(require("connect-redis"));
17
- const redis_1 = require("redis");
17
+ const ioredis_1 = __importDefault(require("ioredis"));
18
18
  const data_base_connections_1 = require("../errors/data-base-connections");
19
- let redisClient = null;
19
+ // Create a Redis cluster or connection pool
20
+ const MAX_CLIENTS = 5; // Limited to 5 connections to stay well below the 30 connection limit
21
+ let connectionPool = [];
22
+ let currentConnectionIndex = 0;
23
+ // Parse Redis connection details
24
+ const getRedisConfig = () => {
25
+ var _a;
26
+ let host = process.env.REDIS_HOST;
27
+ let port = 6379;
28
+ // Handle URL format (redis://hostname:port)
29
+ if (host === null || host === void 0 ? void 0 : host.includes('://')) {
30
+ const urlParts = host.split('://');
31
+ if ((_a = urlParts[1]) === null || _a === void 0 ? void 0 : _a.includes(':')) {
32
+ const hostParts = urlParts[1].split(':');
33
+ host = hostParts[0];
34
+ port = parseInt(hostParts[1], 10) || 6379;
35
+ }
36
+ else if (urlParts[1]) {
37
+ host = urlParts[1];
38
+ }
39
+ }
40
+ return {
41
+ host,
42
+ port,
43
+ password: process.env.REDIS_PASS,
44
+ maxRetriesPerRequest: null,
45
+ enableReadyCheck: false,
46
+ retryStrategy: (times) => {
47
+ if (times > 3)
48
+ return null;
49
+ return Math.min(times * 100, 3000);
50
+ }
51
+ };
52
+ };
53
+ // Initialize the connection pool
54
+ const initializePool = () => {
55
+ if (connectionPool.length === 0) {
56
+ console.log(`Initializing Redis connection pool with ${MAX_CLIENTS} clients`);
57
+ const config = getRedisConfig();
58
+ for (let i = 0; i < MAX_CLIENTS; i++) {
59
+ const client = new ioredis_1.default(config);
60
+ client.setMaxListeners(1000);
61
+ connectionPool.push(client);
62
+ }
63
+ }
64
+ };
65
+ // Get a client from the pool using round-robin
20
66
  const getRedisClient = () => {
21
- if (!redisClient) {
22
- redisClient = (0, redis_1.createClient)({
23
- url: process.env.REDIS_HOST,
24
- password: process.env.REDIS_PASS,
25
- });
26
- // Set a higher limit for event listeners
27
- redisClient.setMaxListeners(20);
67
+ if (connectionPool.length === 0) {
68
+ initializePool();
28
69
  }
29
- return redisClient;
70
+ // Round-robin selection
71
+ const client = connectionPool[currentConnectionIndex];
72
+ currentConnectionIndex = (currentConnectionIndex + 1) % connectionPool.length;
73
+ return client;
30
74
  };
31
75
  exports.getRedisClient = getRedisClient;
32
- const redisConnection = (url, password) => __awaiter(void 0, void 0, void 0, function* () {
76
+ const redisConnection = () => __awaiter(void 0, void 0, void 0, function* () {
33
77
  try {
34
78
  const client = (0, exports.getRedisClient)();
35
- if (!client.isOpen) {
36
- yield client.connect();
37
- }
38
- console.log(`Redis connected in : ${url}`);
79
+ console.log(`Redis connected to: ${process.env.REDIS_HOST}`);
39
80
  return client;
40
81
  }
41
82
  catch (error) {
42
- console.error(`Cannot connect to Redis: ${url}`, error);
43
- throw new data_base_connections_1.DatabaseConnectionError(`Cannot connect to Redis: ${url}`);
83
+ console.error(`Cannot connect to Redis: ${process.env.REDIS_HOST}`, error);
84
+ throw new data_base_connections_1.DatabaseConnectionError(`Cannot connect to Redis: ${process.env.REDIS_HOST}`);
44
85
  }
45
86
  });
46
87
  exports.redisConnection = redisConnection;
47
- const sessionStore = (url, password) => __awaiter(void 0, void 0, void 0, function* () {
88
+ const sessionStore = () => __awaiter(void 0, void 0, void 0, function* () {
48
89
  const client = (0, exports.getRedisClient)();
49
90
  return new connect_redis_1.default({ client });
50
91
  });
51
92
  exports.sessionStore = sessionStore;
52
93
  const cleanupRedis = () => __awaiter(void 0, void 0, void 0, function* () {
53
- if (redisClient) {
54
- yield redisClient.quit();
55
- redisClient = null;
94
+ if (connectionPool.length > 0) {
95
+ console.log('Closing all Redis connections in the pool');
96
+ for (const client of connectionPool) {
97
+ yield client.quit();
98
+ }
99
+ connectionPool = [];
100
+ currentConnectionIndex = 0;
56
101
  }
57
102
  });
58
103
  exports.cleanupRedis = cleanupRedis;
104
+ // import RedisStore from 'connect-redis';
105
+ // import { createClient } from 'redis';
106
+ // import { DatabaseConnectionError } from '../errors/data-base-connections';
107
+ // let redisClient: ReturnType<typeof createClient> | null = null;
108
+ // export const getRedisClient = () => {
109
+ // if (!redisClient) {
110
+ // redisClient = createClient({
111
+ // url: process.env.REDIS_HOST,
112
+ // password: process.env.REDIS_PASS,
113
+ // });
114
+ // // Set a higher limit for event listeners
115
+ // redisClient.setMaxListeners(20);
116
+ // }
117
+ // return redisClient;
118
+ // };
119
+ // export const redisConnection = async (url: string, password: string) => {
120
+ // try {
121
+ // const client = getRedisClient();
122
+ // if (!client.isOpen) {
123
+ // await client.connect();
124
+ // }
125
+ // console.log(`Redis connected in : ${url}`);
126
+ // return client;
127
+ // } catch (error) {
128
+ // console.error(`Cannot connect to Redis: ${url}`, error);
129
+ // throw new DatabaseConnectionError(`Cannot connect to Redis: ${url}`);
130
+ // }
131
+ // };
132
+ // export const sessionStore = async (url: string, password: string) => {
133
+ // const client = getRedisClient();
134
+ // return new RedisStore({ client });
135
+ // };
136
+ // export const cleanupRedis = async () => {
137
+ // if (redisClient) {
138
+ // await redisClient.quit();
139
+ // redisClient = null;
140
+ // }
141
+ // };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.271",
3
+ "version": "1.1.272",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [