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) { }