Skip to content

Commit

Permalink
Implemented RedisServerProfile::supportsCommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrk committed Dec 30, 2009
1 parent 7c6e03e commit a4e0678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Predis.php
Expand Up @@ -698,6 +698,10 @@ public static function getDefault() {
return new $defaultProfile();
}

public function supportsCommand($command) {
return isset($this->_registeredCommands[$command]);
}

public function createCommand($method, $arguments = array()) {
$commandClass = $this->_registeredCommands[$method];

Expand Down

0 comments on commit a4e0678

Please sign in to comment.