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:
authorTyson Andre <tysonandre775@hotmail.com>2020-01-06 05:10:22 +0300
committerTyson Andre <tysonandre775@hotmail.com>2020-01-06 05:12:09 +0300
commit2ddc5f2160af0dc8285d16196e341bf818282346 (patch)
treef7529f067cf379ec50d225e1e800427405003111 /redis_cluster.c
parentdb446138c533dfd66df729b92d610f84514f3828 (diff)
Fix proto comments for host_port in RedisCluster
These methods accept a single argument, not two arguments. (cluster_cmd_get_slot accepts one argument)
Diffstat (limited to 'redis_cluster.c')
-rw-r--r--redis_cluster.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/redis_cluster.c b/redis_cluster.c
index 429f771c..d3dc1421 100644
--- a/redis_cluster.c
+++ b/redis_cluster.c
@@ -2596,7 +2596,7 @@ PHP_METHOD(RedisCluster, hscan) {
/* }}} */
/* {{{ proto RedisCluster::save(string key)
- * proto RedisCluster::save(string host, long port) */
+ * proto RedisCluster::save(array host_port) */
PHP_METHOD(RedisCluster, save) {
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "SAVE", TYPE_LINE,
cluster_bool_resp);
@@ -2604,7 +2604,7 @@ PHP_METHOD(RedisCluster, save) {
/* }}} */
/* {{{ proto RedisCluster::bgsave(string key)
- * proto RedisCluster::bgsave(string host, long port) */
+ * proto RedisCluster::bgsave(array host_port) */
PHP_METHOD(RedisCluster, bgsave) {
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "BGSAVE",
TYPE_LINE, cluster_bool_resp);
@@ -2628,7 +2628,7 @@ PHP_METHOD(RedisCluster, flushall) {
/* }}} */
/* {{{ proto RedisCluster::dbsize(string key)
- * proto RedisCluster::dbsize(string host, long port) */
+ * proto RedisCluster::dbsize(array host_port) */
PHP_METHOD(RedisCluster, dbsize) {
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "DBSIZE",
TYPE_INT, cluster_long_resp);
@@ -2636,7 +2636,7 @@ PHP_METHOD(RedisCluster, dbsize) {
/* }}} */
/* {{{ proto RedisCluster::bgrewriteaof(string key)
- * proto RedisCluster::bgrewriteaof(string host, long port) */
+ * proto RedisCluster::bgrewriteaof(array host_port) */
PHP_METHOD(RedisCluster, bgrewriteaof) {
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "BGREWRITEAOF",
TYPE_LINE, cluster_bool_resp);