You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
19 lines
431 B
TypeScript
19 lines
431 B
TypeScript
export enum ClusterSlotStates {
|
|
IMPORTING = 'IMPORTING',
|
|
MIGRATING = 'MIGRATING',
|
|
STABLE = 'STABLE',
|
|
NODE = 'NODE'
|
|
}
|
|
|
|
export function transformArguments(slot: number, state: ClusterSlotStates, nodeId?: string): Array<string> {
|
|
const args = ['CLUSTER', 'SETSLOT', slot.toString(), state];
|
|
|
|
if (nodeId) {
|
|
args.push(nodeId);
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): string;
|