zlibproxy/vendor/illuminate/redis/Connections/PredisClusterConnection.php

21 lines
425 B
PHP
Raw Permalink Normal View History

2023-01-02 19:56:44 +08:00
<?php
namespace Illuminate\Redis\Connections;
use Predis\Command\ServerFlushDatabase;
class PredisClusterConnection extends PredisConnection
{
/**
* Flush the selected Redis database on all cluster nodes.
*
* @return void
*/
public function flushdb()
{
$this->client->executeCommandOnNodes(
tap(new ServerFlushDatabase)->setArguments(func_get_args())
);
}
}