| 1 |
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers'; |
| 2 |
import { RedisCommandArguments } from '@redis/client/dist/lib/commands'; |
| 3 |
|
| 4 |
interface SynUpdateOptions { |
| 5 |
SKIPINITIALSCAN?: true; |
| 6 |
} |
| 7 |
|
| 8 |
export function transformArguments( |
| 9 |
index: string, |
| 10 |
groupId: string, |
| 11 |
terms: string | Array<string>, |
| 12 |
options?: SynUpdateOptions |
| 13 |
): RedisCommandArguments { |
| 14 |
const args = ['FT.SYNUPDATE', index, groupId]; |
| 15 |
|
| 16 |
if (options?.SKIPINITIALSCAN) { |
| 17 |
args.push('SKIPINITIALSCAN'); |
| 18 |
} |
| 19 |
|
| 20 |
return pushVerdictArguments(args, terms); |
| 21 |
} |
| 22 |
|
| 23 |
export declare function transformReply(): 'OK'; |