1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/packages/client/lib/commands/FCALL.ts
Leibale 442a554fce WIP
2023-05-10 16:07:29 +03:00

20 lines
568 B
TypeScript

import { evalFirstKeyIndex, EvalOptions, pushEvalArguments } from './generic-transformers';
export const FIRST_KEY_INDEX = evalFirstKeyIndex;
export function transformArguments(fn: string, options?: EvalOptions): Array<string> {
return pushEvalArguments(['FCALL', fn], options);
}
import { SimpleStringReply, Command } from '../RESP/types';
export default {
FIRST_KEY_INDEX: undefined,
IS_READ_ONLY: false,
transformArguments() {
return ['FCALL'];
},
transformReply: undefined as unknown as () => SimpleStringReply
} as const satisfies Command;