You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
RedisJSON
This commit is contained in:
@@ -11,15 +11,15 @@ export default {
|
||||
FIRST_KEY_INDEX: 1,
|
||||
IS_READ_ONLY: false,
|
||||
transformArguments(items: Array<JsonMSetItem>) {
|
||||
const args = new Array(1 + items.length * 3);
|
||||
const args = new Array<RedisArgument>(1 + items.length * 3);
|
||||
args[0] = 'JSON.MSET';
|
||||
|
||||
let argsIndex = 1;
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
const item = items[i];
|
||||
args[argsIndex++] = item.key;
|
||||
args[argsIndex++] = item.path;
|
||||
args[argsIndex++] = transformRedisJsonArgument(item.value);
|
||||
const item = items[i];
|
||||
args[argsIndex++] = item.key;
|
||||
args[argsIndex++] = item.path;
|
||||
args[argsIndex++] = transformRedisJsonArgument(item.value);
|
||||
}
|
||||
|
||||
return args;
|
||||
|
Reference in New Issue
Block a user