You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
use dockers for tests, use npm workspaces, add rejson & redisearch modules, fix some bugs
This commit is contained in:
17
packages/client/lib/commands/MSET.ts
Normal file
17
packages/client/lib/commands/MSET.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
export function transformArguments(toSet: Array<[string, string]> | Array<string> | Record<string, string>): Array<string> {
|
||||
const args = ['MSET'];
|
||||
|
||||
if (Array.isArray(toSet)) {
|
||||
args.push(...toSet.flat());
|
||||
} else {
|
||||
for (const key of Object.keys(toSet)) {
|
||||
args.push(key, toSet[key]);
|
||||
}
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
export declare function transformReply(): string;
|
Reference in New Issue
Block a user