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];
    }