@trieb.work/server-utils
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -97,11 +97,11 @@ import Redis from "ioredis"; | ||
} | ||
console.debug( | ||
`CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`, | ||
); | ||
// console.debug( | ||
// `CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`, | ||
// ); | ||
return cached.value; | ||
} catch (err) { | ||
if (REDIS_CACHE_ENABLE) { | ||
console.error( | ||
`CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`, | ||
); | ||
// console.error( | ||
// `CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`, | ||
// ); | ||
} else { | ||
@@ -108,0 +108,0 @@ console.debug( |
@@ -71,3 +71,5 @@ "use strict"; | ||
} | ||
console.debug(`CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`); | ||
// console.debug( | ||
// `CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`, | ||
// ); | ||
return cached.value; | ||
@@ -77,3 +79,5 @@ } | ||
if (REDIS_CACHE_ENABLE) { | ||
console.error(`CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`); | ||
// console.error( | ||
// `CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`, | ||
// ); | ||
} | ||
@@ -80,0 +84,0 @@ else { |
{ | ||
"name": "@trieb.work/server-utils", | ||
"description": "Internal trieb.work utils for server apps", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "license": "Apache License 2.0", |
Sorry, the diff of this file is not supported yet
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
25089
478