1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix SMOVE

This commit is contained in:
dovi
2023-05-03 18:23:45 -04:00
parent a8679f37ec
commit 65c691fd75
5 changed files with 37 additions and 30 deletions

View File

@@ -1,13 +1,14 @@
// import { RedisCommandArgument, RedisCommandArguments } from '.';
import { RedisArgument, NumberReply, Command } from '../RESP/types';
// export const FIRST_KEY_INDEX = 1;
// export function transformArguments(
// source: RedisCommandArgument,
// destination: RedisCommandArgument,
// member: RedisCommandArgument
// ): RedisCommandArguments {
// return ['SMOVE', source, destination, member];
// }
// export { transformBooleanReply as transformReply } from './generic-transformers';
export default {
FIRST_KEY_INDEX: 1,
IS_READ_ONLY: false,
transformArguments(
source: RedisArgument,
destination: RedisArgument,
member: RedisArgument
) {
return ['SMOVE', source, destination, member];
},
transformReply: undefined as unknown as () => NumberReply
} as const satisfies Command;