<?php
$credis = new RedisCluster(NULL, Array('10.11.144.111:6004',));
var_dump($credis);
echo "Connection to server sucessfully";
$credis->set('q', 'wwww');
echo "Server is running: " . $credis->get('q');
?>
[root@cdn phpredis-2.2.8]# php test.php
_PHP Fatal error: Uncaught exception 'RedisClusterException' with message 'Couldn't map cluster keyspace using any provided seed' in /srv/letv/lizha/php_redis/phpredis-2.2.8/test.php:3
Stack trace:
thrown in /srv/letv/lizha/php_redis/phpredis-2.2.8/test.php on line 3_
the Redis Cluster just have one master:
127.0.0.1:6004> CLUSTER slots
1) 1) (integer) 0
2) (integer) 16383
3) 1) "10.11.144.111"
2) (integer) 6004
4) 1) "10.11.144.19"
2) (integer) 7002
Need to support the client to the Redis Cluster just having one master
please merge commit:
This is merged, thanks!
Could you make a patch to the releases about this fix? Wondering why there is no new releases, anything we should be aware of? Thanks!
+1 waiting for the release for this
+1 also waiting for this
Most helpful comment
Need to support the client to the Redis Cluster just having one master
please merge commit: