Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Redis/Connections/PredisClusterConnection.php
Строк: 29
<?php

namespace IlluminateRedisConnections;

use 
PredisCommandRedisFLUSHDB;
use 
PredisCommandServerFlushDatabase;

class 
PredisClusterConnection extends PredisConnection
{
    
/**
     * Flush the selected Redis database on all cluster nodes.
     *
     * @return void
     */
    
public function flushdb()
    {
        
$command class_exists(ServerFlushDatabase::class)
            ? 
ServerFlushDatabase::class
            : 
FLUSHDB::class;

        foreach (
$this->client as $node) {
            
$node->executeCommand(tap(new $command)->setArguments(func_get_args()));
        }
    }
}
Онлайн: 0
Реклама