@soundxyz/fine-grained-cache
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -172,3 +172,4 @@ 'use strict'; | ||
promise, | ||
ttl | ||
ttl, | ||
value | ||
}); | ||
@@ -180,3 +181,3 @@ pendingRedisSetTimeout = setTimeout(executePipeline); | ||
const size = pendingRedisSets.length; | ||
const { promises, commands } = pendingRedisSets.reduce((acc, { key: key2, promise: promise2, ttl: ttl2 }, index) => { | ||
const { promises, commands } = pendingRedisSets.reduce((acc, { key: key2, promise: promise2, ttl: ttl2, value: value2 }, index) => { | ||
acc.promises[index] = { | ||
@@ -189,5 +190,5 @@ promise: promise2, | ||
if (ttl2 != null) { | ||
acc.commands[index] = ["setex", key2, ttl2, value]; | ||
acc.commands[index] = ["setex", key2, ttl2, value2]; | ||
} else { | ||
acc.commands[index] = ["set", key2, value]; | ||
acc.commands[index] = ["set", key2, value2]; | ||
} | ||
@@ -194,0 +195,0 @@ return acc; |
{ | ||
"name": "@soundxyz/fine-grained-cache", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Fine-grained cache helper using redis", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
44443
1209
0