You've already forked node-redis
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user