1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/search/lib/commands/PROFILE.ts

27 lines
447 B
TypeScript

export const IS_READ_ONLY = true;
interface ProfileOptions {
LIMITED?: true;
}
export function transformArguments(
index: string,
type: 'SEARCH' | 'AGGREGATE',
query: string,
options?: ProfileOptions
): Array<string> {
const args = ['FT.PROFILE', index, type];
if (options?.LIMITED) {
args.push('LIMITED');
}
args.push('QUERY', query);
return args;
}
export function transformReply() {
}