浏览代码

Implemented RedisServerProfile::supportsCommand.

Daniele Alessandri 15 年之前
父节点
当前提交
a4e067891a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/Predis.php

+ 4 - 0
lib/Predis.php

@@ -698,6 +698,10 @@ abstract class RedisServerProfile {
         return new $defaultProfile();
     }
 
+    public function supportsCommand($command) {
+        return isset($this->_registeredCommands[$command]);
+    }
+
     public function createCommand($method, $arguments = array()) {
         $commandClass = $this->_registeredCommands[$method];