1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
Files
node-redis/packages/search/lib/commands/CURSOR_READ.ts
2022-08-15 08:40:03 -04:00

20 lines
439 B
TypeScript

import { RedisCommandArgument, RedisCommandArguments } from '@redis/client/dist/lib/commands';
export const FIRST_KEY_INDEX = 1;
export const IS_READ_ONLY = true;
export function transformArguments(
index: RedisCommandArgument,
cursor: number
): RedisCommandArguments {
return [
'FT.CURSOR',
'READ',
index,
cursor.toString()
];
}
export { transformReply } from './AGGREGATE_WITHCURSOR';