library/Rediska/Command/FlushDb.php
public function create($all = false) 
    {
        if ($all) {
            $command = array('FLUSHALL');
        } else {
            $command = array('FLUSHDB');
        }

        $commands = array();
        foreach($this->_rediska->getConnections() as $connection) {
            $commands[] = new Rediska_Connection_Exec($connection, $command);
        }
        
        return $commands;
    }
public function create($all = false) 
    {
        if ($all) {
            $command = array('FLUSHALL');
        } else {
            $command = array('FLUSHDB');
        }

        $commands = array();
        foreach($this->_rediska->getConnections() as $connection) {
            $commands[] = new Rediska_Connection_Exec($connection, $command);
        }
        
        return $commands;
    }
Create command

@param boolean[optional] $all Remove from all Db. For default is false.
@return Rediska_Connection_Exec