simple-node-framework
Advanced tools
Comparing version 6.0.27 to 6.0.28
@@ -54,2 +54,4 @@ const Loggable = require('./base/loggable'); | ||
let timer = this.timer.start(); | ||
return this.redis | ||
@@ -59,3 +61,6 @@ .get(key) | ||
(cache) => { | ||
if(this.config.cache.logHits) this.log.debug(`Hit from cache [${key}]`); | ||
if (this.config.cache.logHits) { | ||
const interval = this.timer.writeLog(timer, `Cache: [${key}]`); | ||
this.log.debug(`Hit from cache [${key}]`, { natural: { responseTime: interval.milliseconds } }); | ||
} | ||
res.status(cache.status).set(cache.headers).send(cache.body); | ||
@@ -62,0 +67,0 @@ }, |
{ | ||
"name": "simple-node-framework", | ||
"version": "6.0.27", | ||
"version": "6.0.28", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "basic", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128336
2056