public function run($method, $parameters)
        {dieDump($method);
            fwrite($this->connect(), $this->command($method, (array) $parameters));
            $response = trim(fgets($this->connect()));
            return $this->parse($response);
        }
public function run($method, $parameters)
        {dieDump($method);
            fwrite($this->connect(), $this->command($method, (array) $parameters));
            $response = trim(fgets($this->connect()));
            return $this->parse($response);
        }
public function run ( $ method , $ parameters ) { dieDump ( $ method ) ; fwrite ( $ this -> connect ( ) , $ this -> command ( $ method , ( array ) $ parameters ) ) ; $ response = trim ( fgets ( $ this -> connect ( ) ) ) ; return $ this -> parse ( $ response ) ; }
Execute a command against the Redis database.

<code>
// Execute the GET command for the "name" key
$name = Redis::db()->run('get', array('name'));

// Execute the LRANGE command for the "list" key
$list = Redis::db()->run('lrange', array(0, 5));
</code>

@param  string  $method
@param  array   $parameters
@return mixed
Execute a command against the Redis database .