19 #ifndef PAGESPEED_SYSTEM_REDIS_CACHE_CLUSTER_SETUP_H_
20 #define PAGESPEED_SYSTEM_REDIS_CACHE_CLUSTER_SETUP_H_
28 namespace net_instaweb {
30 typedef std::vector<std::unique_ptr<TcpConnectionForTesting>> ConnectionList;
32 namespace RedisCluster {
37 StringVector GetNodeConfig(TcpConnectionForTesting* conn);
43 void ResetConfiguration(StringVector* node_ids,
44 std::vector<int>* ports,
45 ConnectionList* connections);
50 bool LoadConfiguration(StringVector* node_ids,
51 std::vector<int>* ports,
52 ConnectionList* connections);
55 void FlushAll(TcpConnectionForTesting* connection);
56 void FlushAll(ConnectionList* connections);