Procházet zdrojové kódy

Implemented RedisServerProfile::supportsCommand.

Daniele Alessandri před 15 roky
rodič
revize
a4e067891a
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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];