@duvdu-v1/duvdu 1.1.60 → 1.1.61
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,292 +1,2 @@
|
|
|
1
1
|
import RedisStore from 'connect-redis';
|
|
2
|
-
export declare const
|
|
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 sessionStore: (url: string, password: string) => RedisStore;
|
|
2
|
+
export declare const sessionStore: (url: string, password: string) => Promise<RedisStore>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// import RedisStore from 'connect-redis';
|
|
3
|
+
// import { createClient } from 'redis';
|
|
2
4
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
5
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
6
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -12,20 +14,39 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
15
|
};
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.sessionStore =
|
|
17
|
+
exports.sessionStore = void 0;
|
|
18
|
+
// import { DatabaseConnectionError } from '../errors/data-base-connections';
|
|
19
|
+
// export const redisConnection = async (url: string , password:string) => {
|
|
20
|
+
// const client = createClient({ url , password });
|
|
21
|
+
// await client
|
|
22
|
+
// .connect()
|
|
23
|
+
// .then(() => console.log(`redis connected in : ${url}`))
|
|
24
|
+
// .catch(() => {
|
|
25
|
+
// throw new DatabaseConnectionError(`cannot connect to redis : ${url}`);
|
|
26
|
+
// });
|
|
27
|
+
// return client;
|
|
28
|
+
// };
|
|
29
|
+
// export const sessionStore = (url: string , password:string) => new RedisStore({ client: redisConnection(url , password) });
|
|
16
30
|
const connect_redis_1 = __importDefault(require("connect-redis"));
|
|
17
31
|
const redis_1 = require("redis");
|
|
18
|
-
const data_base_connections_1 = require("../errors/data-base-connections");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
const data_base_connections_1 = require("../errors/data-base-connections"); // Assuming this is in a separate file
|
|
33
|
+
// Combine connection logic and error handling for clarity
|
|
34
|
+
function connectToRedis(url, password) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const client = (0, redis_1.createClient)({ url, password });
|
|
37
|
+
try {
|
|
38
|
+
yield client.connect();
|
|
39
|
+
console.log(`Redis connected to: ${url}`);
|
|
40
|
+
return client;
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
throw new data_base_connections_1.DatabaseConnectionError(`Cannot connect to Redis: ${url} , error:${error}`);
|
|
44
|
+
}
|
|
26
45
|
});
|
|
27
|
-
|
|
46
|
+
}
|
|
47
|
+
// Create session store using the connection function
|
|
48
|
+
const sessionStore = (url, password) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
+
const client = yield connectToRedis(url, password);
|
|
50
|
+
return new connect_redis_1.default({ client });
|
|
28
51
|
});
|
|
29
|
-
exports.redisConnection = redisConnection;
|
|
30
|
-
const sessionStore = (url, password) => new connect_redis_1.default({ client: (0, exports.redisConnection)(url, password) });
|
|
31
52
|
exports.sessionStore = sessionStore;
|