fix(#9508): switch to ioredis (#9545)

* switch to ioredis

also need this fix in redisearch:

redis-search.js:98
```
  redisClient.multi(cmds).exec(function(err, ids) {
    if (err) {
      return callback(err);
    }
    var errRes = ids[resultIndex];
    if (errRes[0]) {
      return callback(errRes[0]);
    }
    callback(null, errRes[1]);
  });
```

* dbsearch compatible with ioredis

* fixed dbsearch?
This commit is contained in:
Peter Jaszkowiak
2021-05-11 12:18:45 -06:00
committed by GitHub
parent 53335677e3
commit dd81dd03e0
5 changed files with 39 additions and 26 deletions

View File

@@ -29,6 +29,9 @@ module.exports = function (module) {
if (!Array.isArray(key)) {
key = [key];
}
if (!value.length) {
return;
}
const batch = module.client.batch();
key.forEach(k => batch.srem(String(k), value));