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

close #2166 - add support for cursor api (#2217)

This commit is contained in:
Leibale Eidelman
2022-08-15 08:40:03 -04:00
committed by GitHub
parent 7b7d0d2a36
commit 1fdee05dd2
8 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
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';