@warlock.js/cache 4.0.102 → 4.0.104
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.
|
@@ -213,18 +213,18 @@ class BaseCacheDriver {
|
|
|
213
213
|
key = key.replaceAll("/", ".");
|
|
214
214
|
}
|
|
215
215
|
if (operation == "notFound" || operation == "expired") {
|
|
216
|
-
return logger.log.warn("cache
|
|
216
|
+
return logger.log.warn("cache." + this.name, operation, (key ? key + " " : "") + messages[operation]);
|
|
217
217
|
}
|
|
218
218
|
if (operation.endsWith("ed")) {
|
|
219
|
-
return logger.log.success("cache
|
|
219
|
+
return logger.log.success("cache." + this.name, operation, (key ? key + " " : "") + messages[operation]);
|
|
220
220
|
}
|
|
221
|
-
logger.log.info("cache
|
|
221
|
+
logger.log.info("cache." + this.name, operation, (key ? key + " " : "") + messages[operation]);
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* Log error message
|
|
225
225
|
*/
|
|
226
226
|
logError(message, error) {
|
|
227
|
-
logger.log.error("cache
|
|
227
|
+
logger.log.error("cache." + this.name, "error", message);
|
|
228
228
|
if (error) {
|
|
229
229
|
console.log(error);
|
|
230
230
|
}
|
|
@@ -213,18 +213,18 @@ class BaseCacheDriver {
|
|
|
213
213
|
key = key.replaceAll("/", ".");
|
|
214
214
|
}
|
|
215
215
|
if (operation == "notFound" || operation == "expired") {
|
|
216
|
-
return log.warn("cache
|
|
216
|
+
return log.warn("cache." + this.name, operation, (key ? key + " " : "") + messages[operation]);
|
|
217
217
|
}
|
|
218
218
|
if (operation.endsWith("ed")) {
|
|
219
|
-
return log.success("cache
|
|
219
|
+
return log.success("cache." + this.name, operation, (key ? key + " " : "") + messages[operation]);
|
|
220
220
|
}
|
|
221
|
-
log.info("cache
|
|
221
|
+
log.info("cache." + this.name, operation, (key ? key + " " : "") + messages[operation]);
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* Log error message
|
|
225
225
|
*/
|
|
226
226
|
logError(message, error) {
|
|
227
|
-
log.error("cache
|
|
227
|
+
log.error("cache." + this.name, "error", message);
|
|
228
228
|
if (error) {
|
|
229
229
|
console.log(error);
|
|
230
230
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warlock.js/cache",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.104",
|
|
4
4
|
"description": "A Robust Cache Manager for Nodejs",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mongez/fs": "^3.0.5",
|
|
8
8
|
"@mongez/reinforcements": "^2.3.17",
|
|
9
|
-
"@warlock.js/logger": "4.0.
|
|
9
|
+
"@warlock.js/logger": "4.0.104"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"redis": "^4.6.10 || ^5.0.0"
|