You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
buffers, buffers everywhere...
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
import { RedisCommandArguments } from '.';
|
||||
import { MSetArguments } from './MSET';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
export function transformArguments(toSet: Array<[string, string]> | Array<string> | Record<string, string>): Array<string> {
|
||||
const args = ['MSETNX'];
|
||||
export function transformArguments(toSet: MSetArguments): RedisCommandArguments {
|
||||
const args: RedisCommandArguments = ['MSETNX'];
|
||||
|
||||
if (Array.isArray(toSet)) {
|
||||
args.push(...toSet.flat());
|
||||
@ -14,4 +17,4 @@ export function transformArguments(toSet: Array<[string, string]> | Array<string
|
||||
return args;
|
||||
}
|
||||
|
||||
export { transformReplyBoolean as transformReply } from './generic-transformers';
|
||||
export { transformBooleanReply as transformReply } from './generic-transformers';
|
||||
|
Reference in New Issue
Block a user