Explorar o código

Implemented RedisServerProfile::supportsCommand.

Daniele Alessandri %!s(int64=15) %!d(string=hai) anos
pai
achega
a4e067891a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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];