Skip to content

Commit 2c35e43

Browse files
authored
Merge pull request #1696 from TysonAndre/fix-redis_cluster-proto
Fix proto comments for host_port in RedisCluster
2 parents 1ff7dfb + 2ddc5f2 commit 2c35e43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redis_cluster.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2596,15 +2596,15 @@ PHP_METHOD(RedisCluster, hscan) {
25962596
/* }}} */
25972597

25982598
/* {{{ proto RedisCluster::save(string key)
2599-
* proto RedisCluster::save(string host, long port) */
2599+
* proto RedisCluster::save(array host_port) */
26002600
PHP_METHOD(RedisCluster, save) {
26012601
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "SAVE", TYPE_LINE,
26022602
cluster_bool_resp);
26032603
}
26042604
/* }}} */
26052605

26062606
/* {{{ proto RedisCluster::bgsave(string key)
2607-
* proto RedisCluster::bgsave(string host, long port) */
2607+
* proto RedisCluster::bgsave(array host_port) */
26082608
PHP_METHOD(RedisCluster, bgsave) {
26092609
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "BGSAVE",
26102610
TYPE_LINE, cluster_bool_resp);
@@ -2628,15 +2628,15 @@ PHP_METHOD(RedisCluster, flushall) {
26282628
/* }}} */
26292629

26302630
/* {{{ proto RedisCluster::dbsize(string key)
2631-
* proto RedisCluster::dbsize(string host, long port) */
2631+
* proto RedisCluster::dbsize(array host_port) */
26322632
PHP_METHOD(RedisCluster, dbsize) {
26332633
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "DBSIZE",
26342634
TYPE_INT, cluster_long_resp);
26352635
}
26362636
/* }}} */
26372637

26382638
/* {{{ proto RedisCluster::bgrewriteaof(string key)
2639-
* proto RedisCluster::bgrewriteaof(string host, long port) */
2639+
* proto RedisCluster::bgrewriteaof(array host_port) */
26402640
PHP_METHOD(RedisCluster, bgrewriteaof) {
26412641
cluster_empty_node_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, "BGREWRITEAOF",
26422642
TYPE_LINE, cluster_bool_resp);

0 commit comments

Comments
 (0)