1 /*
2  * Hunt - A redis client library for D programming language.
3  *
4  * Copyright (C) 2018-2019 HuntLabs
5  *
6  * Website: https://www.huntlabs.net/
7  *
8  * Licensed under the Apache-2.0 License.
9  *
10  */
11  
12 module hunt.redis.commands.ClusterCommands;
13 
14 import hunt.collection.List;
15 
16 import hunt.redis.ClusterReset;
17 import hunt.Long;
18 
19 /**
20  * 
21  */
22 interface ClusterCommands {
23     string clusterNodes();
24 
25     string clusterMeet(string ip, int port);
26 
27     string clusterAddSlots(int[] slots...);
28 
29     string clusterDelSlots(int[] slots...);
30 
31     string clusterInfo();
32 
33     List!(string) clusterGetKeysInSlot(int slot, int count);
34 
35     string clusterSetSlotNode(int slot, string nodeId);
36 
37     string clusterSetSlotMigrating(int slot, string nodeId);
38 
39     string clusterSetSlotImporting(int slot, string nodeId);
40 
41     string clusterSetSlotStable(int slot);
42 
43     string clusterForget(string nodeId);
44 
45     string clusterFlushSlots();
46 
47     Long clusterKeySlot(string key);
48 
49     Long clusterCountKeysInSlot(int slot);
50 
51     string clusterSaveConfig();
52 
53     string clusterReplicate(string nodeId);
54 
55     List!(string) clusterSlaves(string nodeId);
56 
57     string clusterFailover();
58 
59     List!(Object) clusterSlots();
60 
61     string clusterReset(ClusterReset resetType);
62 
63     string readonly();
64 }