cache-manager 5.7.3 → 5.7.4
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 +3 -3
- package/dist/caching.js +0 -1
- package/package.json +20 -10
package/README.md
CHANGED
|
@@ -92,9 +92,9 @@ await memoryCache.store.mdel('foo', 'foo2');
|
|
|
92
92
|
|
|
93
93
|
You can use your own custom store by creating one with the same API as the built-in memory stores.
|
|
94
94
|
|
|
95
|
-
- [Example Custom Store lru-cache](
|
|
96
|
-
- [Example Custom Store redis](https://github.com/jaredwray/cache-manager/packages/cache-manager-redis-yet)
|
|
97
|
-
- [Example Custom Store ioredis](https://github.com/jaredwray/cache-manager/packages/cache-manager-ioredis-yet)
|
|
95
|
+
- [Example Custom Store lru-cache](https://github.com/jaredwray/cache-manager/blob/main/packages/cache-manager/src/stores/memory.ts)
|
|
96
|
+
- [Example Custom Store redis](https://github.com/jaredwray/cache-manager/tree/main/packages/cache-manager-redis-yet)
|
|
97
|
+
- [Example Custom Store ioredis](https://github.com/jaredwray/cache-manager/tree/main/packages/cache-manager-ioredis-yet)
|
|
98
98
|
|
|
99
99
|
#### Create single cache store synchronously
|
|
100
100
|
|
package/dist/caching.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cache-manager",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.4",
|
|
4
4
|
"description": "Cache module for Node.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -46,22 +46,32 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@faker-js/faker": "^8.4.1",
|
|
48
48
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
49
|
-
"@types/node": "^
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
51
|
-
"@typescript-eslint/parser": "^7.
|
|
52
|
-
"@vitest/coverage-v8": "^2.0.
|
|
53
|
-
"eslint-config-xo-typescript": "^
|
|
49
|
+
"@types/node": "^22.0.0",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
|
51
|
+
"@typescript-eslint/parser": "^7.17.0",
|
|
52
|
+
"@vitest/coverage-v8": "^2.0.4",
|
|
53
|
+
"eslint-config-xo-typescript": "^5.0.0",
|
|
54
54
|
"rimraf": "^6.0.1",
|
|
55
|
-
"typescript": "^5.5.
|
|
56
|
-
"vitest": "^2.0.
|
|
57
|
-
"xo": "^0.
|
|
55
|
+
"typescript": "^5.5.4",
|
|
56
|
+
"vitest": "^2.0.4",
|
|
57
|
+
"xo": "^0.59.3"
|
|
58
58
|
},
|
|
59
59
|
"xo": {
|
|
60
60
|
"extends": "xo-typescript",
|
|
61
61
|
"extensions": [
|
|
62
62
|
"ts",
|
|
63
63
|
"tsx"
|
|
64
|
-
]
|
|
64
|
+
],
|
|
65
|
+
"rules": {
|
|
66
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
67
|
+
"promise/prefer-await-to-then": "off",
|
|
68
|
+
"no-promise-executor-return promise/param-names": "off",
|
|
69
|
+
"promise/param-names": "off",
|
|
70
|
+
"no-promise-executor-return": "off",
|
|
71
|
+
"@typescript-eslint/only-throw-error": "off",
|
|
72
|
+
"promise/valid-params": "off",
|
|
73
|
+
"n/file-extension-in-import": "off"
|
|
74
|
+
}
|
|
65
75
|
},
|
|
66
76
|
"scripts": {
|
|
67
77
|
"build": "rimraf ./dist && tsc -p tsconfig.build.json",
|