public function execute()
    {
        if (!count($this->stack)) {
            foreach ($this->listeners as $cb) {
                $cb($this->pool);
            }
            return;
        }

        $params = $this->getParams();
        $params[] = function ($redis) {
            foreach ($this->listeners as $cb) {
                $cb($redis);
            }
        };
        $this->pool->eval(...$params);
    }
public function execute()
    {
        if (!count($this->stack)) {
            foreach ($this->listeners as $cb) {
                $cb($this->pool);
            }
            return;
        }

        $params = $this->getParams();
        $params[] = function ($redis) {
            foreach ($this->listeners as $cb) {
                $cb($redis);
            }
        };
        $this->pool->eval(...$params);
    }
public function execute ( ) { if ( ! count ( $ this -> stack ) ) { foreach ( $ this -> listeners as $ cb ) { $ cb ( $ this -> pool ) ; } return ; } $ params = $ this -> getParams ( ) ; $ params [ ] = function ( $ redis ) { foreach ( $ this -> listeners as $ cb ) { $ cb ( $ redis ) ; } } ; $ this -> pool -> eval ( ... $ params ) ; }
Runs the stack of commands
Runs the stack of commands