csredis icon indicating copy to clipboard operation
csredis copied to clipboard

ERR unknown command 'ROLE'

Open yangxing5200 opened this issue 10 years ago • 1 comments

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
        }

yangxing5200 avatar Jun 15 '15 11:06 yangxing5200

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.

OmikronTheta avatar Aug 21 '15 16:08 OmikronTheta