Sfoglia il codice sorgente

Implemented RedisServerProfile::supportsCommand.

Daniele Alessandri 15 anni fa
parent
commit
a4e067891a
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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];