1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
This commit is contained in:
dovi
2023-05-01 19:20:45 -04:00
parent e58562be4d
commit ea87a6767f
3 changed files with 45 additions and 38 deletions

View File

@@ -1,14 +1,15 @@
// import { RedisCommandArgument, RedisCommandArguments } from '.';
// import { pushVariadicArguments } from './generic-transformers';
import { NumberReply, Command, RedisArgument } from '../RESP/types';
import { RedisVariadicArgument, pushVariadicArguments } from './generic-transformers';
// export const FIRST_KEY_INDEX = 1;
// export function transformArguments(
// key: RedisCommandArgument,
// group: RedisCommandArgument,
// id: RedisCommandArgument | Array<RedisCommandArgument>
// ): RedisCommandArguments {
// return pushVariadicArguments(['XACK', key, group], id);
// }
// export declare function transformReply(): number;
export default {
FIRST_KEY_INDEX: 1,
IS_READ_ONLY: false,
transformArguments(
key: RedisArgument,
group: RedisArgument,
id: RedisVariadicArgument
) {
return pushVariadicArguments(['XACK', key, group], id);
},
transformReply: undefined as unknown as () => NumberReply
} as const satisfies Command;