Predis\Command\CommandInterface::getId PHP Method

getId() public method

Returns the ID of the Redis command. By convention, command identifiers must always be uppercase.
public getId ( ) : string
return string
    public function getId();

Usage Example

コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function process(CommandInterface $command)
 {
     if ($command instanceof PrefixableCommandInterface) {
         $command->prefixKeys($this->prefix);
     } elseif (isset($this->commands[$commandID = strtoupper($command->getId())])) {
         call_user_func($this->commands[$commandID], $command, $this->prefix);
     }
 }
All Usage Examples Of Predis\Command\CommandInterface::getId