@sebspark/promise-cache 2.1.1 → 2.1.2
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -294,7 +294,7 @@ var PromiseCache = class {
|
|
|
294
294
|
if (cached) {
|
|
295
295
|
if (!ttlKeyInSeconds && cached.ttl !== effectiveTTL) {
|
|
296
296
|
console.error(
|
|
297
|
-
|
|
297
|
+
"WARNING: TTL mismatch for key. It is recommended to use the same TTL for the same key."
|
|
298
298
|
);
|
|
299
299
|
}
|
|
300
300
|
return cached.value;
|
package/dist/index.mjs
CHANGED
|
@@ -265,7 +265,7 @@ var PromiseCache = class {
|
|
|
265
265
|
if (cached) {
|
|
266
266
|
if (!ttlKeyInSeconds && cached.ttl !== effectiveTTL) {
|
|
267
267
|
console.error(
|
|
268
|
-
|
|
268
|
+
"WARNING: TTL mismatch for key. It is recommended to use the same TTL for the same key."
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
return cached.value;
|