simple-node-framework
Advanced tools
Comparing version 6.0.28 to 6.0.29
@@ -54,4 +54,2 @@ const Loggable = require('./base/loggable'); | ||
let timer = this.timer.start(); | ||
return this.redis | ||
@@ -61,6 +59,3 @@ .get(key) | ||
(cache) => { | ||
if (this.config.cache.logHits) { | ||
const interval = this.timer.writeLog(timer, `Cache: [${key}]`); | ||
this.log.debug(`Hit from cache [${key}]`, { natural: { responseTime: interval.milliseconds } }); | ||
} | ||
if(this.config.cache.logHits) this.log.debug(`Hit from cache [${key}]`); | ||
res.status(cache.status).set(cache.headers).send(cache.body); | ||
@@ -67,0 +62,0 @@ }, |
{ | ||
"name": "simple-node-framework", | ||
"version": "6.0.28", | ||
"version": "6.0.29", | ||
"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
128104
2052