@klapeks/micro-db-utils 0.0.1 → 0.0.3
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.
|
@@ -45,11 +45,11 @@ export declare class MongoDBConnection {
|
|
|
45
45
|
static getOptions(): MongoDBConnectOptions;
|
|
46
46
|
static init(databaseName: string): Promise<void>;
|
|
47
47
|
}
|
|
48
|
-
export declare const MongoGeoPoint: MongooseSchema<Point, import("mongoose").Model<Point, any, any, any, import("mongoose").Document<unknown, any, Point, any
|
|
48
|
+
export declare const MongoGeoPoint: MongooseSchema<Point, import("mongoose").Model<Point, any, any, any, import("mongoose").Document<unknown, any, Point, any> & Point & {
|
|
49
49
|
_id: import("mongoose").Types.ObjectId;
|
|
50
50
|
} & {
|
|
51
51
|
__v: number;
|
|
52
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Point, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Point>, {}
|
|
52
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Point, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Point>, {}> & import("mongoose").FlatRecord<Point> & {
|
|
53
53
|
_id: import("mongoose").Types.ObjectId;
|
|
54
54
|
} & {
|
|
55
55
|
__v: number;
|
|
@@ -85,8 +85,9 @@ var MongoDBConnection = /** @class */ (function () {
|
|
|
85
85
|
MongoDBConnection.createCounter = function (name) {
|
|
86
86
|
var _this = this;
|
|
87
87
|
if (name === void 0) { name = 'Counter'; }
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
if (!mongooseModule)
|
|
89
|
+
throw "No mongoose module";
|
|
90
|
+
var _CounterSchema = new mongooseModule.Schema({
|
|
90
91
|
model: { type: String, required: true, unique: true },
|
|
91
92
|
counter: { type: Number, default: 0 }
|
|
92
93
|
}, {
|
|
@@ -174,7 +175,6 @@ function _createDefaultMongoSchemas() {
|
|
|
174
175
|
if (!mongooseModule)
|
|
175
176
|
return {};
|
|
176
177
|
return {
|
|
177
|
-
// @ts-ignore
|
|
178
178
|
MongoGeoPoint: new mongooseModule.Schema({
|
|
179
179
|
type: {
|
|
180
180
|
type: String,
|
|
@@ -10,296 +10,7 @@ export declare class RedisConnection {
|
|
|
10
10
|
keyPrefix: string;
|
|
11
11
|
});
|
|
12
12
|
get keyPrefix(): string;
|
|
13
|
-
initialize(): Promise<
|
|
14
|
-
graph: {
|
|
15
|
-
CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
|
|
16
|
-
configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
|
|
17
|
-
CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
|
|
18
|
-
configSet: typeof import("@redis/graph/dist/commands/CONFIG_SET");
|
|
19
|
-
DELETE: typeof import("@redis/graph/dist/commands/DELETE");
|
|
20
|
-
delete: typeof import("@redis/graph/dist/commands/DELETE");
|
|
21
|
-
EXPLAIN: typeof import("@redis/graph/dist/commands/EXPLAIN");
|
|
22
|
-
explain: typeof import("@redis/graph/dist/commands/EXPLAIN");
|
|
23
|
-
LIST: typeof import("@redis/graph/dist/commands/LIST");
|
|
24
|
-
list: typeof import("@redis/graph/dist/commands/LIST");
|
|
25
|
-
PROFILE: typeof import("@redis/graph/dist/commands/PROFILE");
|
|
26
|
-
profile: typeof import("@redis/graph/dist/commands/PROFILE");
|
|
27
|
-
QUERY: typeof import("@redis/graph/dist/commands/QUERY");
|
|
28
|
-
query: typeof import("@redis/graph/dist/commands/QUERY");
|
|
29
|
-
RO_QUERY: typeof import("@redis/graph/dist/commands/RO_QUERY");
|
|
30
|
-
roQuery: typeof import("@redis/graph/dist/commands/RO_QUERY");
|
|
31
|
-
SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
|
|
32
|
-
slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
|
|
33
|
-
};
|
|
34
|
-
json: {
|
|
35
|
-
ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
|
|
36
|
-
arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
|
|
37
|
-
ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
|
|
38
|
-
arrIndex: typeof import("@redis/json/dist/commands/ARRINDEX");
|
|
39
|
-
ARRINSERT: typeof import("@redis/json/dist/commands/ARRINSERT");
|
|
40
|
-
arrInsert: typeof import("@redis/json/dist/commands/ARRINSERT");
|
|
41
|
-
ARRLEN: typeof import("@redis/json/dist/commands/ARRLEN");
|
|
42
|
-
arrLen: typeof import("@redis/json/dist/commands/ARRLEN");
|
|
43
|
-
ARRPOP: typeof import("@redis/json/dist/commands/ARRPOP");
|
|
44
|
-
arrPop: typeof import("@redis/json/dist/commands/ARRPOP");
|
|
45
|
-
ARRTRIM: typeof import("@redis/json/dist/commands/ARRTRIM");
|
|
46
|
-
arrTrim: typeof import("@redis/json/dist/commands/ARRTRIM");
|
|
47
|
-
DEBUG_MEMORY: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
|
|
48
|
-
debugMemory: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
|
|
49
|
-
DEL: typeof import("@redis/json/dist/commands/DEL");
|
|
50
|
-
del: typeof import("@redis/json/dist/commands/DEL");
|
|
51
|
-
FORGET: typeof import("@redis/json/dist/commands/FORGET");
|
|
52
|
-
forget: typeof import("@redis/json/dist/commands/FORGET");
|
|
53
|
-
GET: typeof import("@redis/json/dist/commands/GET");
|
|
54
|
-
get: typeof import("@redis/json/dist/commands/GET");
|
|
55
|
-
MERGE: typeof import("@redis/json/dist/commands/MERGE");
|
|
56
|
-
merge: typeof import("@redis/json/dist/commands/MERGE");
|
|
57
|
-
MGET: typeof import("@redis/json/dist/commands/MGET");
|
|
58
|
-
mGet: typeof import("@redis/json/dist/commands/MGET");
|
|
59
|
-
MSET: typeof import("@redis/json/dist/commands/MSET");
|
|
60
|
-
mSet: typeof import("@redis/json/dist/commands/MSET");
|
|
61
|
-
NUMINCRBY: typeof import("@redis/json/dist/commands/NUMINCRBY");
|
|
62
|
-
numIncrBy: typeof import("@redis/json/dist/commands/NUMINCRBY");
|
|
63
|
-
NUMMULTBY: typeof import("@redis/json/dist/commands/NUMMULTBY");
|
|
64
|
-
numMultBy: typeof import("@redis/json/dist/commands/NUMMULTBY");
|
|
65
|
-
OBJKEYS: typeof import("@redis/json/dist/commands/OBJKEYS");
|
|
66
|
-
objKeys: typeof import("@redis/json/dist/commands/OBJKEYS");
|
|
67
|
-
OBJLEN: typeof import("@redis/json/dist/commands/OBJLEN");
|
|
68
|
-
objLen: typeof import("@redis/json/dist/commands/OBJLEN");
|
|
69
|
-
RESP: typeof import("@redis/json/dist/commands/RESP");
|
|
70
|
-
resp: typeof import("@redis/json/dist/commands/RESP");
|
|
71
|
-
SET: typeof import("@redis/json/dist/commands/SET");
|
|
72
|
-
set: typeof import("@redis/json/dist/commands/SET");
|
|
73
|
-
STRAPPEND: typeof import("@redis/json/dist/commands/STRAPPEND");
|
|
74
|
-
strAppend: typeof import("@redis/json/dist/commands/STRAPPEND");
|
|
75
|
-
STRLEN: typeof import("@redis/json/dist/commands/STRLEN");
|
|
76
|
-
strLen: typeof import("@redis/json/dist/commands/STRLEN");
|
|
77
|
-
TYPE: typeof import("@redis/json/dist/commands/TYPE");
|
|
78
|
-
type: typeof import("@redis/json/dist/commands/TYPE");
|
|
79
|
-
};
|
|
80
|
-
ft: {
|
|
81
|
-
_LIST: typeof import("@redis/search/dist/commands/_LIST");
|
|
82
|
-
_list: typeof import("@redis/search/dist/commands/_LIST");
|
|
83
|
-
ALTER: typeof import("@redis/search/dist/commands/ALTER");
|
|
84
|
-
alter: typeof import("@redis/search/dist/commands/ALTER");
|
|
85
|
-
AGGREGATE_WITHCURSOR: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
|
|
86
|
-
aggregateWithCursor: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
|
|
87
|
-
AGGREGATE: typeof import("@redis/search/dist/commands/AGGREGATE");
|
|
88
|
-
aggregate: typeof import("@redis/search/dist/commands/AGGREGATE");
|
|
89
|
-
ALIASADD: typeof import("@redis/search/dist/commands/ALIASADD");
|
|
90
|
-
aliasAdd: typeof import("@redis/search/dist/commands/ALIASADD");
|
|
91
|
-
ALIASDEL: typeof import("@redis/search/dist/commands/ALIASDEL");
|
|
92
|
-
aliasDel: typeof import("@redis/search/dist/commands/ALIASDEL");
|
|
93
|
-
ALIASUPDATE: typeof import("@redis/search/dist/commands/ALIASUPDATE");
|
|
94
|
-
aliasUpdate: typeof import("@redis/search/dist/commands/ALIASUPDATE");
|
|
95
|
-
CONFIG_GET: typeof import("@redis/search/dist/commands/CONFIG_GET");
|
|
96
|
-
configGet: typeof import("@redis/search/dist/commands/CONFIG_GET");
|
|
97
|
-
CONFIG_SET: typeof import("@redis/search/dist/commands/CONFIG_SET");
|
|
98
|
-
configSet: typeof import("@redis/search/dist/commands/CONFIG_SET");
|
|
99
|
-
CREATE: typeof import("@redis/search/dist/commands/CREATE");
|
|
100
|
-
create: typeof import("@redis/search/dist/commands/CREATE");
|
|
101
|
-
CURSOR_DEL: typeof import("@redis/search/dist/commands/CURSOR_DEL");
|
|
102
|
-
cursorDel: typeof import("@redis/search/dist/commands/CURSOR_DEL");
|
|
103
|
-
CURSOR_READ: typeof import("@redis/search/dist/commands/CURSOR_READ");
|
|
104
|
-
cursorRead: typeof import("@redis/search/dist/commands/CURSOR_READ");
|
|
105
|
-
DICTADD: typeof import("@redis/search/dist/commands/DICTADD");
|
|
106
|
-
dictAdd: typeof import("@redis/search/dist/commands/DICTADD");
|
|
107
|
-
DICTDEL: typeof import("@redis/search/dist/commands/DICTDEL");
|
|
108
|
-
dictDel: typeof import("@redis/search/dist/commands/DICTDEL");
|
|
109
|
-
DICTDUMP: typeof import("@redis/search/dist/commands/DICTDUMP");
|
|
110
|
-
dictDump: typeof import("@redis/search/dist/commands/DICTDUMP");
|
|
111
|
-
DROPINDEX: typeof import("@redis/search/dist/commands/DROPINDEX");
|
|
112
|
-
dropIndex: typeof import("@redis/search/dist/commands/DROPINDEX");
|
|
113
|
-
EXPLAIN: typeof import("@redis/search/dist/commands/EXPLAIN");
|
|
114
|
-
explain: typeof import("@redis/search/dist/commands/EXPLAIN");
|
|
115
|
-
EXPLAINCLI: typeof import("@redis/search/dist/commands/EXPLAINCLI");
|
|
116
|
-
explainCli: typeof import("@redis/search/dist/commands/EXPLAINCLI");
|
|
117
|
-
INFO: typeof import("@redis/search/dist/commands/INFO");
|
|
118
|
-
info: typeof import("@redis/search/dist/commands/INFO");
|
|
119
|
-
PROFILESEARCH: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
|
|
120
|
-
profileSearch: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
|
|
121
|
-
PROFILEAGGREGATE: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
|
|
122
|
-
profileAggregate: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
|
|
123
|
-
SEARCH: typeof import("@redis/search/dist/commands/SEARCH");
|
|
124
|
-
search: typeof import("@redis/search/dist/commands/SEARCH");
|
|
125
|
-
SEARCH_NOCONTENT: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
|
|
126
|
-
searchNoContent: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
|
|
127
|
-
SPELLCHECK: typeof import("@redis/search/dist/commands/SPELLCHECK");
|
|
128
|
-
spellCheck: typeof import("@redis/search/dist/commands/SPELLCHECK");
|
|
129
|
-
SUGADD: typeof import("@redis/search/dist/commands/SUGADD");
|
|
130
|
-
sugAdd: typeof import("@redis/search/dist/commands/SUGADD");
|
|
131
|
-
SUGDEL: typeof import("@redis/search/dist/commands/SUGDEL");
|
|
132
|
-
sugDel: typeof import("@redis/search/dist/commands/SUGDEL");
|
|
133
|
-
SUGGET_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
|
|
134
|
-
sugGetWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
|
|
135
|
-
SUGGET_WITHSCORES_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
|
|
136
|
-
sugGetWithScoresWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
|
|
137
|
-
SUGGET_WITHSCORES: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
|
|
138
|
-
sugGetWithScores: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
|
|
139
|
-
SUGGET: typeof import("@redis/search/dist/commands/SUGGET");
|
|
140
|
-
sugGet: typeof import("@redis/search/dist/commands/SUGGET");
|
|
141
|
-
SUGLEN: typeof import("@redis/search/dist/commands/SUGLEN");
|
|
142
|
-
sugLen: typeof import("@redis/search/dist/commands/SUGLEN");
|
|
143
|
-
SYNDUMP: typeof import("@redis/search/dist/commands/SYNDUMP");
|
|
144
|
-
synDump: typeof import("@redis/search/dist/commands/SYNDUMP");
|
|
145
|
-
SYNUPDATE: typeof import("@redis/search/dist/commands/SYNUPDATE");
|
|
146
|
-
synUpdate: typeof import("@redis/search/dist/commands/SYNUPDATE");
|
|
147
|
-
TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
|
|
148
|
-
tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
|
|
149
|
-
};
|
|
150
|
-
ts: {
|
|
151
|
-
ADD: typeof import("@redis/time-series/dist/commands/ADD");
|
|
152
|
-
add: typeof import("@redis/time-series/dist/commands/ADD");
|
|
153
|
-
ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
|
|
154
|
-
alter: typeof import("@redis/time-series/dist/commands/ALTER");
|
|
155
|
-
CREATE: typeof import("@redis/time-series/dist/commands/CREATE");
|
|
156
|
-
create: typeof import("@redis/time-series/dist/commands/CREATE");
|
|
157
|
-
CREATERULE: typeof import("@redis/time-series/dist/commands/CREATERULE");
|
|
158
|
-
createRule: typeof import("@redis/time-series/dist/commands/CREATERULE");
|
|
159
|
-
DECRBY: typeof import("@redis/time-series/dist/commands/DECRBY");
|
|
160
|
-
decrBy: typeof import("@redis/time-series/dist/commands/DECRBY");
|
|
161
|
-
DEL: typeof import("@redis/time-series/dist/commands/DEL");
|
|
162
|
-
del: typeof import("@redis/time-series/dist/commands/DEL");
|
|
163
|
-
DELETERULE: typeof import("@redis/time-series/dist/commands/DELETERULE");
|
|
164
|
-
deleteRule: typeof import("@redis/time-series/dist/commands/DELETERULE");
|
|
165
|
-
GET: typeof import("@redis/time-series/dist/commands/GET");
|
|
166
|
-
get: typeof import("@redis/time-series/dist/commands/GET");
|
|
167
|
-
INCRBY: typeof import("@redis/time-series/dist/commands/INCRBY");
|
|
168
|
-
incrBy: typeof import("@redis/time-series/dist/commands/INCRBY");
|
|
169
|
-
INFO_DEBUG: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
|
|
170
|
-
infoDebug: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
|
|
171
|
-
INFO: typeof import("@redis/time-series/dist/commands/INFO");
|
|
172
|
-
info: typeof import("@redis/time-series/dist/commands/INFO");
|
|
173
|
-
MADD: typeof import("@redis/time-series/dist/commands/MADD");
|
|
174
|
-
mAdd: typeof import("@redis/time-series/dist/commands/MADD");
|
|
175
|
-
MGET: typeof import("@redis/time-series/dist/commands/MGET");
|
|
176
|
-
mGet: typeof import("@redis/time-series/dist/commands/MGET");
|
|
177
|
-
MGET_WITHLABELS: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
|
|
178
|
-
mGetWithLabels: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
|
|
179
|
-
QUERYINDEX: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
|
|
180
|
-
queryIndex: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
|
|
181
|
-
RANGE: typeof import("@redis/time-series/dist/commands/RANGE");
|
|
182
|
-
range: typeof import("@redis/time-series/dist/commands/RANGE");
|
|
183
|
-
REVRANGE: typeof import("@redis/time-series/dist/commands/REVRANGE");
|
|
184
|
-
revRange: typeof import("@redis/time-series/dist/commands/REVRANGE");
|
|
185
|
-
MRANGE: typeof import("@redis/time-series/dist/commands/MRANGE");
|
|
186
|
-
mRange: typeof import("@redis/time-series/dist/commands/MRANGE");
|
|
187
|
-
MRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
|
|
188
|
-
mRangeWithLabels: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
|
|
189
|
-
MREVRANGE: typeof import("@redis/time-series/dist/commands/MREVRANGE");
|
|
190
|
-
mRevRange: typeof import("@redis/time-series/dist/commands/MREVRANGE");
|
|
191
|
-
MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
192
|
-
mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
193
|
-
};
|
|
194
|
-
bf: {
|
|
195
|
-
ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
|
|
196
|
-
add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
|
|
197
|
-
CARD: typeof import("@redis/bloom/dist/commands/bloom/CARD");
|
|
198
|
-
card: typeof import("@redis/bloom/dist/commands/bloom/CARD");
|
|
199
|
-
EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
|
|
200
|
-
exists: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
|
|
201
|
-
INFO: typeof import("@redis/bloom/dist/commands/bloom/INFO");
|
|
202
|
-
info: typeof import("@redis/bloom/dist/commands/bloom/INFO");
|
|
203
|
-
INSERT: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
|
|
204
|
-
insert: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
|
|
205
|
-
LOADCHUNK: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
|
|
206
|
-
loadChunk: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
|
|
207
|
-
MADD: typeof import("@redis/bloom/dist/commands/bloom/MADD");
|
|
208
|
-
mAdd: typeof import("@redis/bloom/dist/commands/bloom/MADD");
|
|
209
|
-
MEXISTS: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
|
|
210
|
-
mExists: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
|
|
211
|
-
RESERVE: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
|
|
212
|
-
reserve: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
|
|
213
|
-
SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
214
|
-
scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
215
|
-
};
|
|
216
|
-
cms: {
|
|
217
|
-
INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
218
|
-
incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
219
|
-
INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
|
|
220
|
-
info: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
|
|
221
|
-
INITBYDIM: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
|
|
222
|
-
initByDim: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
|
|
223
|
-
INITBYPROB: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
|
|
224
|
-
initByProb: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
|
|
225
|
-
MERGE: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
|
|
226
|
-
merge: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
|
|
227
|
-
QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
228
|
-
query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
229
|
-
};
|
|
230
|
-
cf: {
|
|
231
|
-
ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
|
|
232
|
-
add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
|
|
233
|
-
ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
|
|
234
|
-
addNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
|
|
235
|
-
COUNT: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
|
|
236
|
-
count: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
|
|
237
|
-
DEL: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
|
|
238
|
-
del: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
|
|
239
|
-
EXISTS: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
|
|
240
|
-
exists: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
|
|
241
|
-
INFO: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
|
|
242
|
-
info: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
|
|
243
|
-
INSERT: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
|
|
244
|
-
insert: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
|
|
245
|
-
INSERTNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
|
|
246
|
-
insertNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
|
|
247
|
-
LOADCHUNK: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
|
|
248
|
-
loadChunk: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
|
|
249
|
-
RESERVE: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
|
|
250
|
-
reserve: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
|
|
251
|
-
SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
252
|
-
scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
253
|
-
};
|
|
254
|
-
tDigest: {
|
|
255
|
-
ADD: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
|
|
256
|
-
add: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
|
|
257
|
-
BYRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
|
|
258
|
-
byRank: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
|
|
259
|
-
BYREVRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
|
|
260
|
-
byRevRank: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
|
|
261
|
-
CDF: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
|
|
262
|
-
cdf: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
|
|
263
|
-
CREATE: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
|
|
264
|
-
create: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
|
|
265
|
-
INFO: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
|
|
266
|
-
info: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
|
|
267
|
-
MAX: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
|
|
268
|
-
max: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
|
|
269
|
-
MERGE: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
|
|
270
|
-
merge: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
|
|
271
|
-
MIN: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
|
|
272
|
-
min: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
|
|
273
|
-
QUANTILE: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
|
|
274
|
-
quantile: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
|
|
275
|
-
RANK: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
|
|
276
|
-
rank: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
|
|
277
|
-
RESET: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
|
|
278
|
-
reset: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
|
|
279
|
-
REVRANK: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
|
|
280
|
-
revRank: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
|
|
281
|
-
TRIMMED_MEAN: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
|
|
282
|
-
trimmedMean: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
|
|
283
|
-
};
|
|
284
|
-
topK: {
|
|
285
|
-
ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
|
|
286
|
-
add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
|
|
287
|
-
COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
|
|
288
|
-
count: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
|
|
289
|
-
INCRBY: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
|
|
290
|
-
incrBy: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
|
|
291
|
-
INFO: typeof import("@redis/bloom/dist/commands/top-k/INFO");
|
|
292
|
-
info: typeof import("@redis/bloom/dist/commands/top-k/INFO");
|
|
293
|
-
LIST_WITHCOUNT: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
|
|
294
|
-
listWithCount: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
|
|
295
|
-
LIST: typeof import("@redis/bloom/dist/commands/top-k/LIST");
|
|
296
|
-
list: typeof import("@redis/bloom/dist/commands/top-k/LIST");
|
|
297
|
-
QUERY: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
|
|
298
|
-
query: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
|
|
299
|
-
RESERVE: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
|
|
300
|
-
reserve: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
|
|
301
|
-
};
|
|
302
|
-
} & import("redis").RedisModules, import("redis").RedisFunctions, import("redis").RedisScripts>>;
|
|
13
|
+
initialize(): Promise<void>;
|
|
303
14
|
remove(key: string): Promise<boolean>;
|
|
304
15
|
get<T = any>(key: string): Promise<T | null>;
|
|
305
16
|
setExpired(key: string, value: any, options?: {
|
|
@@ -61,7 +61,12 @@ var RedisConnection = /** @class */ (function () {
|
|
|
61
61
|
RedisConnection.prototype.initialize = function () {
|
|
62
62
|
return __awaiter(this, void 0, void 0, function () {
|
|
63
63
|
return __generator(this, function (_a) {
|
|
64
|
-
|
|
64
|
+
switch (_a.label) {
|
|
65
|
+
case 0: return [4 /*yield*/, this.redisClient.connect()];
|
|
66
|
+
case 1:
|
|
67
|
+
_a.sent();
|
|
68
|
+
return [2 /*return*/];
|
|
69
|
+
}
|
|
65
70
|
});
|
|
66
71
|
});
|
|
67
72
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klapeks/micro-db-utils",
|
|
3
3
|
"description": "klapeks utils for db and other storages",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"author": "Klapeks",
|
|
7
7
|
"license": "ISC",
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"url": "https://github.com/Klapeks/micro-db-utils.git"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
+
"@aws-sdk/client-s3": "^3.842.0",
|
|
23
|
+
"@aws-sdk/s3-request-presigner": "^3.844.0",
|
|
22
24
|
"@klapeks/api-creation-tools": "^0.0.7",
|
|
25
|
+
"@klapeks/utils": "^0.1.1",
|
|
23
26
|
"@types/node": "^18.11.18",
|
|
24
27
|
"axios": "^1.7.7",
|
|
25
|
-
"
|
|
26
|
-
"@klapeks/utils": "^0.1.1",
|
|
27
|
-
"@aws-sdk/client-s3": "^3.842.0",
|
|
28
|
-
"@aws-sdk/s3-request-presigner": "^3.844.0",
|
|
28
|
+
"ioredis": "^5.6.1",
|
|
29
29
|
"kafkajs": "^2.2.4",
|
|
30
30
|
"mongoose": "^8.16.1",
|
|
31
|
-
"ioredis": "^5.6.1",
|
|
32
|
-
"redis": "^4.7.0",
|
|
33
31
|
"mysql2": "^3.11.3",
|
|
32
|
+
"redis": "^4.7.0",
|
|
34
33
|
"sqlite3": "^5.1.7",
|
|
35
|
-
"typeorm": "^0.3.21"
|
|
34
|
+
"typeorm": "^0.3.21",
|
|
35
|
+
"typescript": "^4.7.4"
|
|
36
36
|
}
|
|
37
37
|
}
|