ctstone / csredis

.NET client for Redis and Redis Sentinel (2.8). Includes both synchronous and asynchronous clients.
Other
292 stars 111 forks source link

ERR unknown command 'ROLE' #30

Open yangxing5200 opened 9 years ago

yangxing5200 commented 9 years ago

var Host = "192.168.1.59"; using (var sentinel = new RedisSentinelManager("192.168.1.59:6389", "192.168.1.59:7389", "192.168.1.59:7390")) { sentinel.Add(Host); // add host using default port sentinel.Add(Host, 26389); // add host using specific port // sentinel. // sentinel.Connected += (s, e) => sentinel.C; // this will be called each time a master connects next line throw ERR unknown command 'ROLE'
sentinel.Connect("server-1M"); // open connection

            var test2 = sentinel.Call(x => x.Time()); // use the Call() lambda to access the current master connection
        }
OmikronTheta commented 9 years ago

Is this project even still under active dev? I've been using it but if it's not being maintained/update I may move on to something else.