From a4e067891a05cb909bc00142a962b4de405c9003 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Wed, 30 Dec 2009 13:49:48 +0100 Subject: [PATCH] Implemented RedisServerProfile::supportsCommand. --- lib/Predis.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Predis.php b/lib/Predis.php index 40aba8f11..424e81892 100644 --- a/lib/Predis.php +++ b/lib/Predis.php @@ -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];