public function working(Worker $worker)
    {
        $this->redis->sadd(self::redisKey(), $this->hostname);

        $this->redis->sadd(self::redisKey($this), (string)$worker);
        $this->redis->expire(self::redisKey($this), $this->timeout);
    }
public function working(Worker $worker)
    {
        $this->redis->sadd(self::redisKey(), $this->hostname);

        $this->redis->sadd(self::redisKey($this), (string)$worker);
        $this->redis->expire(self::redisKey($this), $this->timeout);
    }
public function working ( Worker $ worker ) { $ this -> redis -> sadd ( self :: redisKey ( ) , $ this -> hostname ) ; $ this -> redis -> sadd ( self :: redisKey ( $ this ) , ( string ) $ worker ) ; $ this -> redis -> expire ( self :: redisKey ( $ this ) , $ this -> timeout ) ; }
Mark host as having an active worker

@param Worker $worker the worker instance
Mark host as having an active worker