You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix XDEL
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user