cache-manager 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -450
- package/dist/caching.d.ts +32 -0
- package/dist/caching.js +103 -0
- package/dist/caching.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/multi-caching.d.ts +6 -0
- package/dist/multi-caching.js +155 -0
- package/dist/multi-caching.js.map +1 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.js +18 -0
- package/dist/stores/index.js.map +1 -0
- package/dist/stores/memory.d.ts +19 -0
- package/dist/stores/memory.js +232 -0
- package/dist/stores/memory.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +50 -21
- package/History.md +0 -262
- package/examples/example.js +0 -133
- package/examples/redis_example/example.js +0 -147
- package/examples/redis_example/redis_store.js +0 -124
- package/index.js +0 -1
- package/lib/caching.js +0 -384
- package/lib/callback_filler.js +0 -28
- package/lib/index.js +0 -7
- package/lib/multi_caching.js +0 -657
- package/lib/stores/memory.js +0 -244
- package/lib/stores/none.js +0 -143
- package/lib/utils.js +0 -42
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __values = (this && this.__values) || function(o) {
|
|
39
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
40
|
+
if (m) return m.call(o);
|
|
41
|
+
if (o && typeof o.length === "number") return {
|
|
42
|
+
next: function () {
|
|
43
|
+
if (o && i >= o.length) o = void 0;
|
|
44
|
+
return { value: o && o[i++], done: !o };
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48
|
+
};
|
|
49
|
+
exports.__esModule = true;
|
|
50
|
+
exports.multiCaching = void 0;
|
|
51
|
+
/**
|
|
52
|
+
* Module that lets you specify a hierarchy of caches.
|
|
53
|
+
*/
|
|
54
|
+
function multiCaching(caches) {
|
|
55
|
+
var _this = this;
|
|
56
|
+
var get = function (key) { return __awaiter(_this, void 0, void 0, function () {
|
|
57
|
+
var caches_1, caches_1_1, cache, val, e_1, e_2_1;
|
|
58
|
+
var e_2, _a;
|
|
59
|
+
return __generator(this, function (_b) {
|
|
60
|
+
switch (_b.label) {
|
|
61
|
+
case 0:
|
|
62
|
+
_b.trys.push([0, 7, 8, 9]);
|
|
63
|
+
caches_1 = __values(caches), caches_1_1 = caches_1.next();
|
|
64
|
+
_b.label = 1;
|
|
65
|
+
case 1:
|
|
66
|
+
if (!!caches_1_1.done) return [3 /*break*/, 6];
|
|
67
|
+
cache = caches_1_1.value;
|
|
68
|
+
_b.label = 2;
|
|
69
|
+
case 2:
|
|
70
|
+
_b.trys.push([2, 4, , 5]);
|
|
71
|
+
return [4 /*yield*/, cache.get(key)];
|
|
72
|
+
case 3:
|
|
73
|
+
val = _b.sent();
|
|
74
|
+
if (val !== undefined)
|
|
75
|
+
return [2 /*return*/, val];
|
|
76
|
+
return [3 /*break*/, 5];
|
|
77
|
+
case 4:
|
|
78
|
+
e_1 = _b.sent();
|
|
79
|
+
return [3 /*break*/, 5];
|
|
80
|
+
case 5:
|
|
81
|
+
caches_1_1 = caches_1.next();
|
|
82
|
+
return [3 /*break*/, 1];
|
|
83
|
+
case 6: return [3 /*break*/, 9];
|
|
84
|
+
case 7:
|
|
85
|
+
e_2_1 = _b.sent();
|
|
86
|
+
e_2 = { error: e_2_1 };
|
|
87
|
+
return [3 /*break*/, 9];
|
|
88
|
+
case 8:
|
|
89
|
+
try {
|
|
90
|
+
if (caches_1_1 && !caches_1_1.done && (_a = caches_1["return"])) _a.call(caches_1);
|
|
91
|
+
}
|
|
92
|
+
finally { if (e_2) throw e_2.error; }
|
|
93
|
+
return [7 /*endfinally*/];
|
|
94
|
+
case 9: return [2 /*return*/];
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}); };
|
|
98
|
+
var set = function (key, data, ttl) { return __awaiter(_this, void 0, void 0, function () {
|
|
99
|
+
return __generator(this, function (_a) {
|
|
100
|
+
switch (_a.label) {
|
|
101
|
+
case 0: return [4 /*yield*/, Promise.all(caches.map(function (cache) { return cache.set(key, data, ttl); }))];
|
|
102
|
+
case 1:
|
|
103
|
+
_a.sent();
|
|
104
|
+
return [2 /*return*/];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}); };
|
|
108
|
+
return {
|
|
109
|
+
get: get,
|
|
110
|
+
set: set,
|
|
111
|
+
del: function (key) { return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, Promise.all(caches.map(function (cache) { return cache.del(key); }))];
|
|
115
|
+
case 1:
|
|
116
|
+
_a.sent();
|
|
117
|
+
return [2 /*return*/];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}); },
|
|
121
|
+
wrap: function (key, fn) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
123
|
+
var value, result;
|
|
124
|
+
return __generator(this, function (_a) {
|
|
125
|
+
switch (_a.label) {
|
|
126
|
+
case 0: return [4 /*yield*/, get(key)];
|
|
127
|
+
case 1:
|
|
128
|
+
value = _a.sent();
|
|
129
|
+
if (!(value === undefined)) return [3 /*break*/, 4];
|
|
130
|
+
return [4 /*yield*/, fn()];
|
|
131
|
+
case 2:
|
|
132
|
+
result = _a.sent();
|
|
133
|
+
return [4 /*yield*/, set(key, result)];
|
|
134
|
+
case 3:
|
|
135
|
+
_a.sent();
|
|
136
|
+
return [2 /*return*/, result];
|
|
137
|
+
case 4: return [2 /*return*/, value];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
reset: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
switch (_a.label) {
|
|
145
|
+
case 0: return [4 /*yield*/, Promise.all(caches.map(function (x) { return x.reset(); }))];
|
|
146
|
+
case 1:
|
|
147
|
+
_a.sent();
|
|
148
|
+
return [2 /*return*/];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}); }
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
exports.multiCaching = multiCaching;
|
|
155
|
+
//# sourceMappingURL=multi-caching.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-caching.js","sourceRoot":"","sources":["../src/multi-caching.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;GAEG;AACH,SAAgB,YAAY,CAC1B,MAAc;IADhB,iBAiCC;IA9BC,IAAM,GAAG,GAAG,UAAU,GAAW;;;;;;;oBACX,WAAA,SAAA,MAAM,CAAA;;;;oBAAf,KAAK;;;;oBAEA,qBAAM,KAAK,CAAC,GAAG,CAAI,GAAG,CAAC,EAAA;;oBAA7B,GAAG,GAAG,SAAuB;oBACnC,IAAI,GAAG,KAAK,SAAS;wBAAE,sBAAO,GAAG,EAAC;;;;;;;;;;;;;;;;;;;;;;SAGvC,CAAC;IACF,IAAM,GAAG,GAAG,UAAU,GAAW,EAAE,IAAO,EAAE,GAAqB;;;wBAC/D,qBAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAzB,CAAyB,CAAC,CAAC,EAAA;;oBAAnE,SAAmE,CAAC;;;;SACrE,CAAC;IACF,OAAO;QACL,GAAG,KAAA;QACH,GAAG,KAAA;QACH,GAAG,EAAE,UAAO,GAAG;;;4BACb,qBAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAd,CAAc,CAAC,CAAC,EAAA;;wBAAxD,SAAwD,CAAC;;;;aAC1D;QACK,IAAI,YAAI,GAAW,EAAE,EAAoB;;;;;gCAC/B,qBAAM,GAAG,CAAI,GAAG,CAAC,EAAA;;4BAAzB,KAAK,GAAG,SAAiB;iCAC3B,CAAA,KAAK,KAAK,SAAS,CAAA,EAAnB,wBAAmB;4BACN,qBAAM,EAAE,EAAE,EAAA;;4BAAnB,MAAM,GAAG,SAAU;4BACzB,qBAAM,GAAG,CAAI,GAAG,EAAE,MAAM,CAAC,EAAA;;4BAAzB,SAAyB,CAAC;4BAC1B,sBAAO,MAAM,EAAC;gCAEhB,sBAAO,KAAK,EAAC;;;;SACd;QACD,KAAK,EAAE;;;4BACL,qBAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,EAAE,EAAT,CAAS,CAAC,CAAC,EAAA;;wBAA/C,SAA+C,CAAC;;;;aACjD;KACF,CAAC;AACJ,CAAC;AAjCD,oCAiCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './memory';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
__exportStar(require("./memory"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import LRUCache, { Options } from 'lru-cache';
|
|
2
|
+
import { Config, Cache, Store } from '../caching';
|
|
3
|
+
declare type Lru = LRUCache<string, unknown>;
|
|
4
|
+
export declare type MemoryConfig = {
|
|
5
|
+
max?: number;
|
|
6
|
+
sizeCalculation?: (key: string, value: unknown) => number;
|
|
7
|
+
shouldCloneBeforeSet?: boolean;
|
|
8
|
+
} & Options<string, unknown> & Config;
|
|
9
|
+
export declare type MemoryStore = Store & {
|
|
10
|
+
keyCount: () => number;
|
|
11
|
+
dump: Lru['dump'];
|
|
12
|
+
load: Lru['load'];
|
|
13
|
+
};
|
|
14
|
+
export declare type MemoryCache = Cache<MemoryStore>;
|
|
15
|
+
/**
|
|
16
|
+
* Wrapper for lru-cache.
|
|
17
|
+
*/
|
|
18
|
+
export declare function memoryStore(args?: MemoryConfig): MemoryStore;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
50
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
51
|
+
if (!m) return o;
|
|
52
|
+
var i = m.call(o), r, ar = [], e;
|
|
53
|
+
try {
|
|
54
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
55
|
+
}
|
|
56
|
+
catch (error) { e = { error: error }; }
|
|
57
|
+
finally {
|
|
58
|
+
try {
|
|
59
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
60
|
+
}
|
|
61
|
+
finally { if (e) throw e.error; }
|
|
62
|
+
}
|
|
63
|
+
return ar;
|
|
64
|
+
};
|
|
65
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
66
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
67
|
+
if (ar || !(i in from)) {
|
|
68
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
69
|
+
ar[i] = from[i];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
73
|
+
};
|
|
74
|
+
var __values = (this && this.__values) || function(o) {
|
|
75
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
76
|
+
if (m) return m.call(o);
|
|
77
|
+
if (o && typeof o.length === "number") return {
|
|
78
|
+
next: function () {
|
|
79
|
+
if (o && i >= o.length) o = void 0;
|
|
80
|
+
return { value: o && o[i++], done: !o };
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
84
|
+
};
|
|
85
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
86
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
87
|
+
};
|
|
88
|
+
exports.__esModule = true;
|
|
89
|
+
exports.memoryStore = void 0;
|
|
90
|
+
var lru_cache_1 = __importDefault(require("lru-cache"));
|
|
91
|
+
var lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
|
|
92
|
+
function clone(object) {
|
|
93
|
+
if (typeof object === 'object' && object !== null) {
|
|
94
|
+
return (0, lodash_clonedeep_1["default"])(object);
|
|
95
|
+
}
|
|
96
|
+
return object;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Wrapper for lru-cache.
|
|
100
|
+
*/
|
|
101
|
+
function memoryStore(args) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
var _a;
|
|
104
|
+
var shouldCloneBeforeSet = (args === null || args === void 0 ? void 0 : args.shouldCloneBeforeSet) !== false; // clone by default
|
|
105
|
+
var isCacheable = (_a = args === null || args === void 0 ? void 0 : args.isCacheable) !== null && _a !== void 0 ? _a : (function (val) { return val !== undefined; });
|
|
106
|
+
var lruOpts = __assign(__assign({}, args), { max: (args === null || args === void 0 ? void 0 : args.max) || 500, ttl: (args === null || args === void 0 ? void 0 : args.ttl) ? args.ttl : 0 });
|
|
107
|
+
var lruCache = new lru_cache_1["default"](lruOpts);
|
|
108
|
+
return {
|
|
109
|
+
del: function (key) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
lruCache["delete"](key);
|
|
113
|
+
return [2 /*return*/];
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
get: function (key) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
118
|
+
return [2 /*return*/, lruCache.get(key)];
|
|
119
|
+
}); }); },
|
|
120
|
+
keys: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
121
|
+
return [2 /*return*/, __spreadArray([], __read(lruCache.keys()), false)];
|
|
122
|
+
}); }); },
|
|
123
|
+
mget: function () {
|
|
124
|
+
var args = [];
|
|
125
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
126
|
+
args[_i] = arguments[_i];
|
|
127
|
+
}
|
|
128
|
+
return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
129
|
+
return [2 /*return*/, args.map(function (x) { return lruCache.get(x); })];
|
|
130
|
+
}); });
|
|
131
|
+
},
|
|
132
|
+
mset: function (args, ttl) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
var opt, args_1, args_1_1, _a, key, value;
|
|
135
|
+
var e_1, _b;
|
|
136
|
+
return __generator(this, function (_c) {
|
|
137
|
+
opt = { ttl: ttl ? ttl : lruOpts.ttl };
|
|
138
|
+
try {
|
|
139
|
+
for (args_1 = __values(args), args_1_1 = args_1.next(); !args_1_1.done; args_1_1 = args_1.next()) {
|
|
140
|
+
_a = __read(args_1_1.value, 2), key = _a[0], value = _a[1];
|
|
141
|
+
if (!isCacheable(value))
|
|
142
|
+
throw new Error("no cacheable value ".concat(JSON.stringify(value)));
|
|
143
|
+
if (shouldCloneBeforeSet)
|
|
144
|
+
lruCache.set(key, clone(value), opt);
|
|
145
|
+
else
|
|
146
|
+
lruCache.set(key, value, opt);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
150
|
+
finally {
|
|
151
|
+
try {
|
|
152
|
+
if (args_1_1 && !args_1_1.done && (_b = args_1["return"])) _b.call(args_1);
|
|
153
|
+
}
|
|
154
|
+
finally { if (e_1) throw e_1.error; }
|
|
155
|
+
}
|
|
156
|
+
return [2 /*return*/];
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
mdel: function () {
|
|
161
|
+
var args = [];
|
|
162
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
163
|
+
args[_i] = arguments[_i];
|
|
164
|
+
}
|
|
165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
+
var args_2, args_2_1, key;
|
|
167
|
+
var e_2, _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
try {
|
|
170
|
+
for (args_2 = __values(args), args_2_1 = args_2.next(); !args_2_1.done; args_2_1 = args_2.next()) {
|
|
171
|
+
key = args_2_1.value;
|
|
172
|
+
lruCache["delete"](key);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
176
|
+
finally {
|
|
177
|
+
try {
|
|
178
|
+
if (args_2_1 && !args_2_1.done && (_a = args_2["return"])) _a.call(args_2);
|
|
179
|
+
}
|
|
180
|
+
finally { if (e_2) throw e_2.error; }
|
|
181
|
+
}
|
|
182
|
+
return [2 /*return*/];
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
reset: function () {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
lruCache.clear();
|
|
190
|
+
return [2 /*return*/];
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
ttl: function (key) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
195
|
+
return [2 /*return*/, lruCache.getRemainingTTL(key)];
|
|
196
|
+
}); }); },
|
|
197
|
+
set: function (key, value, opt) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var ttl;
|
|
200
|
+
return __generator(this, function (_a) {
|
|
201
|
+
if (!isCacheable(value))
|
|
202
|
+
throw new Error("no cacheable value ".concat(JSON.stringify(value)));
|
|
203
|
+
if (shouldCloneBeforeSet)
|
|
204
|
+
value = clone(value);
|
|
205
|
+
ttl = opt ? opt : lruOpts.ttl;
|
|
206
|
+
lruCache.set(key, value, { ttl: ttl });
|
|
207
|
+
return [2 /*return*/];
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
* This method is not available in the caching modules.
|
|
213
|
+
*/
|
|
214
|
+
keyCount: function () { return lruCache.size; },
|
|
215
|
+
/**
|
|
216
|
+
* This method is not available in the caching modules.
|
|
217
|
+
*/
|
|
218
|
+
dump: function () { return lruCache.dump(); },
|
|
219
|
+
/**
|
|
220
|
+
* This method is not available in the caching modules.
|
|
221
|
+
*/
|
|
222
|
+
load: function () {
|
|
223
|
+
var args = [];
|
|
224
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
225
|
+
args[_i] = arguments[_i];
|
|
226
|
+
}
|
|
227
|
+
return lruCache.load.apply(lruCache, __spreadArray([], __read(args), false));
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
exports.memoryStore = memoryStore;
|
|
232
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/stores/memory.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es5.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/.pnpm/lru-cache@7.14.0/node_modules/lru-cache/index.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/common.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/array.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/collection.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/date.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/function.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/lang.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/math.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/number.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/object.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/seq.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/string.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/common/util.d.ts","../node_modules/.pnpm/@types+lodash@4.14.185/node_modules/@types/lodash/index.d.ts","../node_modules/.pnpm/@types+lodash.clonedeep@4.5.7/node_modules/@types/lodash.clonedeep/index.d.ts","../src/stores/memory.ts","../src/stores/index.ts","../src/caching.ts","../src/multi-caching.ts","../src/index.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/assert.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/assert/strict.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/globals.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/async_hooks.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/buffer.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/child_process.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/cluster.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/console.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/constants.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/crypto.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/dgram.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/dns.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/dns/promises.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/domain.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/events.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/fs.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/fs/promises.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/http.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/http2.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/https.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/inspector.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/module.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/net.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/os.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/path.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/perf_hooks.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/process.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/punycode.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/querystring.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/readline.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/readline/promises.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/repl.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/stream.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/stream/promises.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/stream/consumers.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/stream/web.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/string_decoder.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/test.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/timers.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/timers/promises.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/tls.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/trace_events.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/tty.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/url.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/util.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/v8.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/vm.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/wasi.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/worker_threads.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/zlib.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/globals.global.d.ts","../node_modules/.pnpm/@types+node@18.7.22/node_modules/@types/node/ts4.8/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"a83e11b6800c50b4d361fc997551dad8a95c817298e91cdff00e17b18a883418","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","6702a1cd8818cb22ee95c85dcf2c31c117bde892e1afd2bc254bd720f4c6263c","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","7a79ca84e4370ed2e1afaa99ff7d25194901916b7672e977d16f77af3b71342f","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"1ecdcf09ff556c7be88a5969071d09fdf173da75b7502ee2ae3d368b0e33a87f",{"version":"1675370e1031fb059760fef0dfc414df7d6673239ac456e61d9b6cdc50e54ed7","signature":"37ac257ab719938b8ca3b9cff8f021da80884ce5fce046a5351ea959fdae2434"},"3d989d2dc4d3a3c297f5c31115963026a481e7ecc54f0e356b3bbebededdc50a",{"version":"ec5488e33237ddd7855e8887582ad66ff2210a64012ab8833a97905646168585","signature":"f3f18c61f47ec2ccf261fcdf79363575bd0601b73c02cfa225f2ef38135bf403"},{"version":"ed0eeed2364552dd56110f4009177823596f04a394cff9ab7382a496579273ed","signature":"d92cc3d5fcfd6df414789f4f126a4c2e97cec5de6cd62f49968dc330ce038371"},"4489f8f01affdc619f5893de6db5d21f594603addb6329d2cbdb2453d2837879","9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"002d6d5f044365b3fbfba0ba9be3bb57cac09b81547c8df4b0795755d2081d90","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","c4cfc9a6e2ebb8bc8c0e2392dfc4056993ced3b35069ebf132ac18ca7a562881","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"bae4ea23beb8397755b935cb84d3cdc6cdb0b1b4a329b90de9fc6c8774d71994","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","3c135ff5bda0355f6b52a10ea931736ec7c5a80b7fb8772019054e0eaa0fd6b6","1abb206a4ecd13b21536b677d7d5f66e0d7316f0d44610197cfcc5776f78884a","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"76527127c8b749bee5977408861ce3ee56ec19ddcea8704c628f98ca610283e6","7fc5b4377d39edbbd127cdc84805bd85da1ec2fc55412213912cd6f67b66399b","b68bd7bef90dab08b1866a9fee24f03d9fee10bcb3f587b074e96e61abf6d3f0","cb4f3f03480e1727eae46400606cecaa97f550186ff8fa909ebc00db4180531b",{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","556bf5c36deb62cffa1bf697c1789fe008ec82db0273025001db66732714e9d9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","0830071706fa0e477fb5e95f0955cc1062b5948b146b7d4e03a126f12ad6085f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2d526e6f21d8cc66ac11ada32874e95ae88d870c6c9d3d9d4e03b1d1f9ad7b8e","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","d2ec52f565f0570e90b659811347bd689f8c6039b11eaaccd0f243759d46da6e","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ecd8eb2ed2ea3f7e17ae00a2ce61db2c199e6e3944f6ff4a02de85c1a98e38eb"],"options":{"declaration":true,"downlevelIteration":true,"esModuleInterop":true,"module":1,"outDir":"./","sourceMap":true,"strict":true},"fileIdsList":[[67,119],[55,57,58,59,60,61,62,63,64,65,66,67,119],[55,56,58,59,60,61,62,63,64,65,66,67,119],[56,57,58,59,60,61,62,63,64,65,66,67,119],[55,56,57,59,60,61,62,63,64,65,66,67,119],[55,56,57,58,60,61,62,63,64,65,66,67,119],[55,56,57,58,59,61,62,63,64,65,66,67,119],[55,56,57,58,59,60,62,63,64,65,66,67,119],[55,56,57,58,59,60,61,63,64,65,66,67,119],[55,56,57,58,59,60,61,62,64,65,66,67,119],[55,56,57,58,59,60,61,62,63,65,66,67,119],[55,56,57,58,59,60,61,62,63,64,66,67,119],[55,56,57,58,59,60,61,62,63,64,65,67,119],[55,56,57,58,59,60,61,62,63,64,65,66,119],[74,119],[77,119],[78,83,119],[79,89,90,97,107,118,119],[79,80,89,97,119],[81,119],[82,83,90,98,119],[83,107,115,119],[84,86,89,97,119],[85,119],[86,87,119],[88,89,119],[89,119],[89,90,91,107,118,119],[89,90,91,107,110,119],[119,123],[119],[92,97,107,118,119],[89,90,92,93,97,107,115,118,119],[92,94,107,115,118,119],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125],[89,95,119],[96,118,119],[86,89,97,107,119],[98,119],[99,119],[77,100,119],[101,117,119,123],[102,119],[103,119],[89,104,105,119],[104,106,119,121],[89,107,108,109,110,119],[107,109,119],[107,108,119],[110,119],[111,119],[89,113,114,119],[113,114,119],[83,97,107,115,119],[116,119],[97,117,119],[78,92,103,118,119],[83,119],[107,119,120],[119,121],[119,122],[78,83,89,91,100,107,118,119,121,123],[107,119,124],[70,119],[70,71,72,119],[71,119],[69,119],[54,68,71,119],[70],[71],[54,71]],"referencedMap":[[68,1],[56,2],[57,3],[55,4],[58,5],[59,6],[60,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[74,15],[75,15],[77,16],[78,17],[79,18],[80,19],[81,20],[82,21],[83,22],[84,23],[85,24],[86,25],[87,25],[88,26],[89,27],[90,28],[91,29],[76,30],[125,31],[92,32],[93,33],[94,34],[126,35],[95,36],[96,37],[97,38],[98,39],[99,40],[100,41],[101,42],[102,43],[103,44],[104,45],[105,45],[106,46],[107,47],[109,48],[108,49],[110,50],[111,51],[112,31],[113,52],[114,53],[115,54],[116,55],[117,56],[118,57],[119,58],[120,59],[121,60],[122,61],[123,62],[124,63],[54,31],[12,31],[11,31],[2,31],[13,31],[14,31],[15,31],[16,31],[17,31],[18,31],[19,31],[20,31],[3,31],[4,31],[24,31],[21,31],[22,31],[23,31],[25,31],[26,31],[27,31],[5,31],[28,31],[29,31],[30,31],[31,31],[6,31],[32,31],[33,31],[34,31],[35,31],[7,31],[36,31],[41,31],[42,31],[37,31],[38,31],[39,31],[40,31],[8,31],[46,31],[43,31],[44,31],[45,31],[47,31],[9,31],[48,31],[49,31],[50,31],[51,31],[52,31],[1,31],[10,31],[53,31],[71,64],[73,65],[72,66],[70,67],[69,68]],"exportedModulesMap":[[68,1],[56,2],[57,3],[55,4],[58,5],[59,6],[60,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,14],[74,15],[75,15],[77,16],[78,17],[79,18],[80,19],[81,20],[82,21],[83,22],[84,23],[85,24],[86,25],[87,25],[88,26],[89,27],[90,28],[91,29],[76,30],[125,31],[92,32],[93,33],[94,34],[126,35],[95,36],[96,37],[97,38],[98,39],[99,40],[100,41],[101,42],[102,43],[103,44],[104,45],[105,45],[106,46],[107,47],[109,48],[108,49],[110,50],[111,51],[112,31],[113,52],[114,53],[115,54],[116,55],[117,56],[118,57],[119,58],[120,59],[121,60],[122,61],[123,62],[124,63],[54,31],[12,31],[11,31],[2,31],[13,31],[14,31],[15,31],[16,31],[17,31],[18,31],[19,31],[20,31],[3,31],[4,31],[24,31],[21,31],[22,31],[23,31],[25,31],[26,31],[27,31],[5,31],[28,31],[29,31],[30,31],[31,31],[6,31],[32,31],[33,31],[34,31],[35,31],[7,31],[36,31],[41,31],[42,31],[37,31],[38,31],[39,31],[40,31],[8,31],[46,31],[43,31],[44,31],[45,31],[47,31],[9,31],[48,31],[49,31],[50,31],[51,31],[52,31],[1,31],[10,31],[53,31],[71,69],[73,65],[72,70],[70,67],[69,71]],"semanticDiagnosticsPerFile":[68,56,57,55,58,59,60,61,62,63,64,65,66,67,74,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,76,125,92,93,94,126,95,96,97,98,99,100,101,102,103,104,105,106,107,109,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,54,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,52,1,10,53,71,73,72,70,69]},"version":"4.8.4"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cache-manager",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Cache module for Node.js",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"files": [
|
|
7
|
-
"
|
|
8
|
-
"/examples",
|
|
9
|
-
"/lib"
|
|
8
|
+
"dist"
|
|
10
9
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"test": "make"
|
|
13
|
-
},
|
|
14
10
|
"repository": {
|
|
15
11
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/node-cache-manager/node-cache-manager.git"
|
|
17
13
|
},
|
|
18
14
|
"keywords": [
|
|
19
15
|
"cache",
|
|
@@ -22,21 +18,54 @@
|
|
|
22
18
|
"memory cache",
|
|
23
19
|
"multiple cache"
|
|
24
20
|
],
|
|
25
|
-
"
|
|
21
|
+
"authors": [
|
|
22
|
+
{
|
|
23
|
+
"name": "Bryan Donovan"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Juan Aguilar Santillana",
|
|
27
|
+
"email": "mhpoin@gmail.com"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
26
30
|
"license": "MIT",
|
|
27
31
|
"dependencies": {
|
|
28
|
-
"async": "3.2.3",
|
|
29
32
|
"lodash.clonedeep": "^4.5.0",
|
|
30
|
-
"lru-cache": "^7.
|
|
33
|
+
"lru-cache": "^7.14.0"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
36
|
+
"@commitlint/cli": "17.1.2",
|
|
37
|
+
"@commitlint/config-conventional": "17.1.0",
|
|
38
|
+
"@faker-js/faker": "7.5.0",
|
|
39
|
+
"@release-it/conventional-changelog": "5.1.0",
|
|
40
|
+
"@types/lodash.clonedeep": "4.5.7",
|
|
41
|
+
"@types/node": "18.7.22",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "5.38.1",
|
|
43
|
+
"@typescript-eslint/parser": "5.38.1",
|
|
44
|
+
"@vitest/coverage-c8": "0.23.4",
|
|
45
|
+
"dotenv-cli": "6.0.0",
|
|
46
|
+
"eslint": "8.24.0",
|
|
47
|
+
"eslint-config-prettier": "8.5.0",
|
|
48
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
49
|
+
"husky": "8.0.1",
|
|
50
|
+
"lint-staged": "13.0.3",
|
|
51
|
+
"prettier": "2.7.1",
|
|
52
|
+
"release-it": "15.4.2",
|
|
53
|
+
"typescript": "4.8.4",
|
|
54
|
+
"vitest": "0.23.4"
|
|
55
|
+
},
|
|
56
|
+
"lint-staged": {
|
|
57
|
+
"*.{ts,js}": "eslint --cache --fix",
|
|
58
|
+
"*.{md,json,yml}": "prettier --write"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
62
|
+
"test": "vitest",
|
|
63
|
+
"release": "pnpm check && pnpm test -- --run && pnpm build && dotenv release-it",
|
|
64
|
+
"fix": "pnpm lint && pnpm fmt",
|
|
65
|
+
"check": "pnpm lint:check && pnpm fmt:check",
|
|
66
|
+
"lint": "eslint --cache --max-warnings 0 --fix '**/*.ts'",
|
|
67
|
+
"fmt": "prettier --write '**/*.{md,json,yml}'",
|
|
68
|
+
"lint:check": "eslint --cache --max-warnings 0 '**/*.ts'",
|
|
69
|
+
"fmt:check": "prettier --check '**/*.{md,json,yml}'"
|
|
41
70
|
}
|
|
42
|
-
}
|
|
71
|
+
}
|