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

"forward port" changes from 4.6.9

This commit is contained in:
Leibale
2023-09-19 19:23:24 -04:00
parent 819ca71538
commit 099f16e45f
16 changed files with 306 additions and 260 deletions

View File

@@ -1,11 +1,15 @@
import { RedisCommandArguments } from '.';
import { SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';
export function transformArguments(value: boolean): RedisCommandArguments {
export default {
FIRST_KEY_INDEX: undefined,
IS_READ_ONLY: true,
transformArguments(value: boolean) {
return [
'CLIENT',
'NO-TOUCH',
value ? 'ON' : 'OFF'
'CLIENT',
'NO-TOUCH',
value ? 'ON' : 'OFF'
];
}
},
transformReply: undefined as unknown as () => SimpleStringReply<'OK'>
} as const satisfies Command;
export declare function transformReply(): 'OK' | Buffer;