src/Job/Status.php
public function incrementAttribute($name, $by = 1)
    {
        $pipeline = $this->client->pipeline();
        $pipeline->hincrby($this->getHashKey(), $name, $by);
        $pipeline->hset($this->getHashKey(), 'updated', time());
        $result = $pipeline->execute();

        return $this->attributes[$name] = $result[0];
    }
public function incrementAttribute($name, $by = 1)
    {
        $pipeline = $this->client->pipeline();
        $pipeline->hincrby($this->getHashKey(), $name, $by);
        $pipeline->hset($this->getHashKey(), 'updated', time());
        $result = $pipeline->execute();

        return $this->attributes[$name] = $result[0];
    }
public function incrementAttribute ( $ name , $ by = 1 ) { $ pipeline = $ this -> client -> pipeline ( ) ; $ pipeline -> hincrby ( $ this -> getHashKey ( ) , $ name , $ by ) ; $ pipeline -> hset ( $ this -> getHashKey ( ) , 'updated' , time ( ) ) ; $ result = $ pipeline -> execute ( ) ; return $ this -> attributes [ $ name ] = $ result [ 0 ] ; }
Increments an attribute

The attribute should be an integer field

@param string  $name
@param integer $by
@return integer The value after incrementing (see hincrby)
Increments an attribute