Commit baf29540 by Carsten Brandt

better php doc for redis Connection::executeCommand

parent 38a19388
...@@ -339,15 +339,23 @@ class Connection extends Component ...@@ -339,15 +339,23 @@ class Connection extends Component
} }
/** /**
* Execute a redis command * Executes a redis command.
* http://redis.io/commands * For a list of available commands and their parameters see http://redis.io/commands.
* http://redis.io/topics/protocol
* *
* @param $name * @param string $name the name of the command
* @param $params * @param array $params list of parameters for the command
* @return array|bool|null|string * @return array|bool|null|string Dependend on the executed command this method
* Returns true on Status reply * will return different data types:
* TODO explain all reply types *
* - `true` for commands that return "status reply".
* - `string` for commands that return "integer reply"
* as the value is in the range of a signed 64 bit integer.
* - `string` or `null` for commands that return "bulk reply".
* - `array` for commands that return "Multi-bulk replies".
*
* See [redis protocol description](http://redis.io/topics/protocol)
* for details on the mentioned reply types.
* @trows CException for commands that return [error reply](http://redis.io/topics/protocol#error-reply).
*/ */
public function executeCommand($name, $params=array()) public function executeCommand($name, $params=array())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment