@keyv/redis
Advanced tools
Comparing version 2.3.4 to 2.3.5
{ | ||
"name": "@keyv/redis", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"description": "Redis storage adapter for Keyv", | ||
@@ -44,7 +44,7 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"ioredis": "^5.0.3" | ||
"ioredis": "^5.0.4" | ||
}, | ||
"devDependencies": { | ||
"@keyv/test-suite": "*", | ||
"ava": "^4.1.0", | ||
"ava": "^4.2.0", | ||
"delay": "^5.0.0", | ||
@@ -56,3 +56,3 @@ "keyv": "*", | ||
"tsd": "^0.20.0", | ||
"typescript": "^4.6.3", | ||
"typescript": "^4.6.4", | ||
"xo": "^0.48.0" | ||
@@ -59,0 +59,0 @@ }, |
@@ -83,8 +83,6 @@ const EventEmitter = require('events'); | ||
const values = await get(keys); | ||
for (const i in keys) { | ||
if (Object.prototype.hasOwnProperty.call(keys, i)) { | ||
const key = keys[i]; | ||
const value = values[i]; | ||
yield [key, value]; | ||
} | ||
for (const [i] of keys.entries()) { | ||
const key = keys[i]; | ||
const value = values[i]; | ||
yield [key, value]; | ||
} | ||
@@ -97,3 +95,3 @@ | ||
yield * iterate(0, `${namespace ? namespace + ':' : ''}*`); | ||
yield * iterate(0, `${namespace}:*`); | ||
} | ||
@@ -105,4 +103,8 @@ | ||
} | ||
disconnect() { | ||
return this.redis.disconnect(); | ||
} | ||
} | ||
module.exports = KeyvRedis; |
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
113
6284
Updatedioredis@^5.0.4