You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
24 lines
636 B
TypeScript
24 lines
636 B
TypeScript
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
|
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
|
|
|
interface SynUpdateOptions {
|
|
SKIPINITIALSCAN?: true;
|
|
}
|
|
|
|
export function transformArguments(
|
|
index: string,
|
|
groupId: string,
|
|
terms: string | Array<string>,
|
|
options?: SynUpdateOptions
|
|
): RedisCommandArguments {
|
|
const args = ['FT.SYNUPDATE', index, groupId];
|
|
|
|
if (options?.SKIPINITIALSCAN) {
|
|
args.push('SKIPINITIALSCAN');
|
|
}
|
|
|
|
return pushVerdictArguments(args, terms);
|
|
}
|
|
|
|
export declare function transformReply(): 'OK';
|