1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
dovi
2023-05-02 15:28:23 -04:00
parent ea87a6767f
commit dd6b211db3
4 changed files with 73 additions and 37 deletions

View File

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