Zincrybulk (#9975)

* feat: zincry bulk

* feat: psql bulk incr placeholder

* test: redis test fix

* test: redis test
This commit is contained in:
Barış Soner Uşaklı
2021-11-30 19:59:47 -05:00
committed by GitHub
parent d9c42c000c
commit 6ea3b51f12
4 changed files with 78 additions and 0 deletions

View File

@@ -498,6 +498,11 @@ RETURNING "score" s`,
});
};
module.sortedSetIncrByBulk = async function (data) {
// TODO: perf single query?
return await Promise.all(data.map(item => module.sortedSetIncrBy(item[0], item[1], item[2])));
};
module.getSortedSetRangeByLex = async function (key, min, max, start, count) {
return await sortedSetLex(key, min, max, 1, start, count);
};