1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

fix DELETERULE

This commit is contained in:
dovi
2023-07-05 14:41:38 -04:00
parent ffa5c50fc0
commit a9ec9e2b9b
2 changed files with 29 additions and 26 deletions

View File

@@ -1,11 +1,14 @@
export const FIRST_KEY_INDEX = 1;
import { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';
export function transformArguments(sourceKey: string, destinationKey: string): Array<string> {
export default {
FIRST_KEY_INDEX: 1,
IS_READ_ONLY: false,
transformArguments(sourceKey: RedisArgument, destinationKey: RedisArgument) {
return [
'TS.DELETERULE',
sourceKey,
destinationKey
'TS.DELETERULE',
sourceKey,
destinationKey
];
}
export declare function transformReply(): 'OK';
},
transformReply: undefined as unknown as () => SimpleStringReply<'OK'>
} as const satisfies Command;