From b3ec47a85e1f50157efcfefe874970304837c765 Mon Sep 17 00:00:00 2001 From: Damien Fayet Date: Thu, 11 Feb 2021 12:06:40 +0100 Subject: [PATCH] Add missing option for flushDB() and flushAll() --- src/Redis.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Redis.php b/src/Redis.php index 1405338..2422431 100644 --- a/src/Redis.php +++ b/src/Redis.php @@ -2590,23 +2590,30 @@ public function bitOp($operation, $retKey, $key1, ...$otherKeys) /** * Removes all entries from the current database. * + * @param bool $async + * * @return bool Always TRUE + * + * @since phpredis 4.1 The $async option was added * @link https://redis.io/commands/flushdb * @example $redis->flushDB(); */ - public function flushDB() + public function flushDB($async) { } /** * Removes all entries from all databases. * + * @param bool $async + * * @return bool Always TRUE * + * @since phpredis 4.1 The $async option was added * @link https://redis.io/commands/flushall * @example $redis->flushAll(); */ - public function flushAll() + public function flushAll($async) { }