Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2019-02-14 21:23:09 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-02-14 21:23:09 +0300
commit63be9527be50a726caf3537ba50eb07d67391129 (patch)
tree2e46cae8ff350392be41f57e2c8a8ca6f09ab36b /redis_cluster.c
parentb6c4d03a2741d63ccc7438905b980b448702de7d (diff)
parent85419ce7d370dca4d81e9426363ca0ae65c93439 (diff)
Merge branch 'issue.1448-require_php7' into cluster-slot-cache
Diffstat (limited to 'redis_cluster.c')
-rw-r--r--redis_cluster.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/redis_cluster.c b/redis_cluster.c
index e2ea55e3..6dab44c6 100644
--- a/redis_cluster.c
+++ b/redis_cluster.c
@@ -150,7 +150,9 @@ zend_function_entry redis_cluster_functions[] = {
PHP_ME(RedisCluster, geohash, arginfo_key_members, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, geopos, arginfo_key_members, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, georadius, arginfo_georadius, ZEND_ACC_PUBLIC)
+ PHP_ME(RedisCluster, georadius_ro, arginfo_georadius, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, georadiusbymember, arginfo_georadiusbymember, ZEND_ACC_PUBLIC)
+ PHP_ME(RedisCluster, georadiusbymember_ro, arginfo_georadiusbymember, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, get, arginfo_key, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, getbit, arginfo_key_offset, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, getlasterror, arginfo_void, ZEND_ACC_PUBLIC)
@@ -2929,12 +2931,22 @@ PHP_METHOD(RedisCluster, geodist) {
/* {{{ proto array RedisCluster::georadius() }}} */
PHP_METHOD(RedisCluster, georadius) {
- CLUSTER_PROCESS_CMD(georadius, cluster_variant_resp, 1);
+ CLUSTER_PROCESS_KW_CMD("GEORADIUS", redis_georadius_cmd, cluster_variant_resp, 1);
+}
+
+/* {{{ proto array RedisCluster::georadius() }}} */
+PHP_METHOD(RedisCluster, georadius_ro) {
+ CLUSTER_PROCESS_KW_CMD("GEORADIUS_RO", redis_georadius_cmd, cluster_variant_resp, 1);
}
/* {{{ proto array RedisCluster::georadiusbymember() }}} */
PHP_METHOD(RedisCluster, georadiusbymember) {
- CLUSTER_PROCESS_CMD(georadiusbymember, cluster_variant_resp, 1)
+ CLUSTER_PROCESS_KW_CMD("GEORADIUSBYMEMBER", redis_georadiusbymember_cmd, cluster_variant_resp, 1);
+}
+
+/* {{{ proto array RedisCluster::georadiusbymember() }}} */
+PHP_METHOD(RedisCluster, georadiusbymember_ro) {
+ CLUSTER_PROCESS_KW_CMD("GEORADIUSBYMEMBER_RO", redis_georadiusbymember_cmd, cluster_variant_resp, 1);
}
/* {{{ proto array RedisCluster::role(string key)