library/Rediska/Command/GetKeysByPattern.php
public function create($pattern) 
    {
        $commands = array();
        $command = array('KEYS',
                         $this->_rediska->getOption('namespace') . $pattern);

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

        return $commands;
    }
public function create($pattern) 
    {
        $commands = array();
        $command = array('KEYS',
                         $this->_rediska->getOption('namespace') . $pattern);

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

        return $commands;
    }
Create command

@param string $pattern Pattern
@return Rediska_Connection_Exec