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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-04-23 15:59:26 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-04-23 15:59:26 +0300
commit4b767be7e9c0e225b4c2a6e26ae18b8e217f4ba5 (patch)
tree5ad3303e11aa15a45476bbf5798984ad5ff75169 /redis.c
parenta47c38a1c146828f12ac87a4529a8f37de593734 (diff)
Issue #1894
Add FAILOVER command.
Diffstat (limited to 'redis.c')
-rw-r--r--redis.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/redis.c b/redis.c
index ff385b67..2cea0b87 100644
--- a/redis.c
+++ b/redis.c
@@ -1695,6 +1695,13 @@ PHP_METHOD(Redis, lastSave)
}
/* }}} */
+/* {{{ proto bool Redis::failover([array to [,bool abort [,int timeout]]] ) */
+PHP_METHOD(Redis, failover)
+{
+ REDIS_PROCESS_CMD(failover, redis_boolean_response);
+}
+/* }}} */
+
/* {{{ proto bool Redis::flushDB([bool async]) */
PHP_METHOD(Redis, flushDB)
{