@duvdu-v1/duvdu 1.1.271 → 1.1.273
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,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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,182 @@ 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
|
|
17
|
+
const ioredis_1 = __importDefault(require("ioredis"));
|
|
18
18
|
const data_base_connections_1 = require("../errors/data-base-connections");
|
|
19
|
-
|
|
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
|
+
let totalConnectionsRequested = 0;
|
|
24
|
+
let activeConnections = 0;
|
|
25
|
+
// Parse Redis connection details
|
|
26
|
+
const getRedisConfig = () => {
|
|
27
|
+
var _a;
|
|
28
|
+
let host = process.env.REDIS_HOST;
|
|
29
|
+
let port = 6379;
|
|
30
|
+
// Handle URL format (redis://hostname:port)
|
|
31
|
+
if (host === null || host === void 0 ? void 0 : host.includes('://')) {
|
|
32
|
+
const urlParts = host.split('://');
|
|
33
|
+
if ((_a = urlParts[1]) === null || _a === void 0 ? void 0 : _a.includes(':')) {
|
|
34
|
+
const hostParts = urlParts[1].split(':');
|
|
35
|
+
host = hostParts[0];
|
|
36
|
+
port = parseInt(hostParts[1], 10) || 6379;
|
|
37
|
+
}
|
|
38
|
+
else if (urlParts[1]) {
|
|
39
|
+
host = urlParts[1];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
host,
|
|
44
|
+
port,
|
|
45
|
+
password: process.env.REDIS_PASS,
|
|
46
|
+
maxRetriesPerRequest: null,
|
|
47
|
+
enableReadyCheck: false,
|
|
48
|
+
retryStrategy: (times) => {
|
|
49
|
+
if (times > 3)
|
|
50
|
+
return null;
|
|
51
|
+
return Math.min(times * 100, 3000);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
// Get Redis client info to monitor connections
|
|
56
|
+
const getClientInfo = (client) => __awaiter(void 0, void 0, void 0, function* () {
|
|
57
|
+
try {
|
|
58
|
+
const info = yield client.info('clients');
|
|
59
|
+
const connectedClients = info.match(/connected_clients:(\d+)/);
|
|
60
|
+
return connectedClients ? parseInt(connectedClients[1], 10) : 0;
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
console.error('[REDIS] Error getting client info:', error);
|
|
64
|
+
return 0;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
// Log Redis server stats periodically
|
|
68
|
+
const startMonitoring = () => {
|
|
69
|
+
const monitorInterval = 60000; // 1 minute
|
|
70
|
+
setInterval(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
71
|
+
if (connectionPool.length > 0) {
|
|
72
|
+
try {
|
|
73
|
+
const client = connectionPool[0]; // Use first client for monitoring
|
|
74
|
+
const clientCount = yield getClientInfo(client);
|
|
75
|
+
console.log(`[REDIS] Server stats - Connected clients: ${clientCount}, Pool size: ${connectionPool.length}, Active tracked connections: ${activeConnections}`);
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
console.error('[REDIS] Error monitoring Redis:', error);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}), monitorInterval);
|
|
82
|
+
};
|
|
83
|
+
// Initialize the connection pool
|
|
84
|
+
const initializePool = () => {
|
|
85
|
+
if (connectionPool.length === 0) {
|
|
86
|
+
const config = getRedisConfig();
|
|
87
|
+
console.log(`[REDIS] Initializing connection pool with ${MAX_CLIENTS} clients to ${config.host}:${config.port}`);
|
|
88
|
+
for (let i = 0; i < MAX_CLIENTS; i++) {
|
|
89
|
+
const client = new ioredis_1.default(config);
|
|
90
|
+
client.setMaxListeners(1000);
|
|
91
|
+
// Add connection event listeners
|
|
92
|
+
client.on('connect', () => {
|
|
93
|
+
activeConnections++;
|
|
94
|
+
console.log(`[REDIS] Client #${i + 1} connected successfully (Active: ${activeConnections})`);
|
|
95
|
+
});
|
|
96
|
+
client.on('error', (err) => {
|
|
97
|
+
console.error(`[REDIS] Client #${i + 1} connection error:`, err);
|
|
98
|
+
});
|
|
99
|
+
client.on('close', () => {
|
|
100
|
+
activeConnections = Math.max(0, activeConnections - 1);
|
|
101
|
+
console.log(`[REDIS] Client #${i + 1} connection closed (Active: ${activeConnections})`);
|
|
102
|
+
});
|
|
103
|
+
connectionPool.push(client);
|
|
104
|
+
}
|
|
105
|
+
// Start monitoring
|
|
106
|
+
startMonitoring();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
// Get a client from the pool using round-robin
|
|
20
110
|
const getRedisClient = () => {
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
111
|
+
if (connectionPool.length === 0) {
|
|
112
|
+
initializePool();
|
|
113
|
+
}
|
|
114
|
+
totalConnectionsRequested++;
|
|
115
|
+
// Round-robin selection
|
|
116
|
+
const client = connectionPool[currentConnectionIndex];
|
|
117
|
+
currentConnectionIndex = (currentConnectionIndex + 1) % connectionPool.length;
|
|
118
|
+
if (totalConnectionsRequested % 100 === 0) {
|
|
119
|
+
console.log(`[REDIS] Total connection requests: ${totalConnectionsRequested}, Current pool size: ${connectionPool.length}, Active connections: ${activeConnections}`);
|
|
120
|
+
}
|
|
121
|
+
return client;
|
|
30
122
|
};
|
|
31
123
|
exports.getRedisClient = getRedisClient;
|
|
32
|
-
const redisConnection = (
|
|
124
|
+
const redisConnection = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
125
|
try {
|
|
34
126
|
const client = (0, exports.getRedisClient)();
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
console.log(`Redis connected in : ${url}`);
|
|
127
|
+
const config = getRedisConfig();
|
|
128
|
+
console.log(`[REDIS] Connection provided from pool to ${config.host}:${config.port}`);
|
|
39
129
|
return client;
|
|
40
130
|
}
|
|
41
131
|
catch (error) {
|
|
42
|
-
console.error(`Cannot connect to Redis: ${
|
|
43
|
-
throw new data_base_connections_1.DatabaseConnectionError(`Cannot connect to Redis: ${
|
|
132
|
+
console.error(`[REDIS] Cannot connect to Redis: ${process.env.REDIS_HOST}`, error);
|
|
133
|
+
throw new data_base_connections_1.DatabaseConnectionError(`Cannot connect to Redis: ${process.env.REDIS_HOST}`);
|
|
44
134
|
}
|
|
45
135
|
});
|
|
46
136
|
exports.redisConnection = redisConnection;
|
|
47
|
-
const sessionStore = (
|
|
137
|
+
const sessionStore = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
48
138
|
const client = (0, exports.getRedisClient)();
|
|
139
|
+
console.log('[REDIS] Created session store with pooled connection');
|
|
49
140
|
return new connect_redis_1.default({ client });
|
|
50
141
|
});
|
|
51
142
|
exports.sessionStore = sessionStore;
|
|
52
143
|
const cleanupRedis = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
|
|
144
|
+
if (connectionPool.length > 0) {
|
|
145
|
+
console.log('[REDIS] Closing all Redis connections in the pool');
|
|
146
|
+
for (let i = 0; i < connectionPool.length; i++) {
|
|
147
|
+
const client = connectionPool[i];
|
|
148
|
+
yield client.quit();
|
|
149
|
+
console.log(`[REDIS] Client #${i + 1} quit successfully`);
|
|
150
|
+
}
|
|
151
|
+
connectionPool = [];
|
|
152
|
+
currentConnectionIndex = 0;
|
|
153
|
+
activeConnections = 0;
|
|
154
|
+
console.log('[REDIS] Connection pool cleared');
|
|
56
155
|
}
|
|
57
156
|
});
|
|
58
157
|
exports.cleanupRedis = cleanupRedis;
|
|
158
|
+
// import RedisStore from 'connect-redis';
|
|
159
|
+
// import { createClient } from 'redis';
|
|
160
|
+
// import { DatabaseConnectionError } from '../errors/data-base-connections';
|
|
161
|
+
// let redisClient: ReturnType<typeof createClient> | null = null;
|
|
162
|
+
// export const getRedisClient = () => {
|
|
163
|
+
// if (!redisClient) {
|
|
164
|
+
// redisClient = createClient({
|
|
165
|
+
// url: process.env.REDIS_HOST,
|
|
166
|
+
// password: process.env.REDIS_PASS,
|
|
167
|
+
// });
|
|
168
|
+
// // Set a higher limit for event listeners
|
|
169
|
+
// redisClient.setMaxListeners(20);
|
|
170
|
+
// }
|
|
171
|
+
// return redisClient;
|
|
172
|
+
// };
|
|
173
|
+
// export const redisConnection = async (url: string, password: string) => {
|
|
174
|
+
// try {
|
|
175
|
+
// const client = getRedisClient();
|
|
176
|
+
// if (!client.isOpen) {
|
|
177
|
+
// await client.connect();
|
|
178
|
+
// }
|
|
179
|
+
// console.log(`Redis connected in : ${url}`);
|
|
180
|
+
// return client;
|
|
181
|
+
// } catch (error) {
|
|
182
|
+
// console.error(`Cannot connect to Redis: ${url}`, error);
|
|
183
|
+
// throw new DatabaseConnectionError(`Cannot connect to Redis: ${url}`);
|
|
184
|
+
// }
|
|
185
|
+
// };
|
|
186
|
+
// export const sessionStore = async (url: string, password: string) => {
|
|
187
|
+
// const client = getRedisClient();
|
|
188
|
+
// return new RedisStore({ client });
|
|
189
|
+
// };
|
|
190
|
+
// export const cleanupRedis = async () => {
|
|
191
|
+
// if (redisClient) {
|
|
192
|
+
// await redisClient.quit();
|
|
193
|
+
// redisClient = null;
|
|
194
|
+
// }
|
|
195
|
+
// };
|