修复ttlcache/Cache.IncreaseInt64返回结果的Bug

This commit is contained in:
GoEdgeLab
2021-03-26 11:47:02 +08:00
parent f62266296f
commit 3ce05d89d0

View File

@@ -31,7 +31,7 @@ func (this *Piece) IncreaseInt64(key uint64, delta int64, expiredAt int64) (resu
this.locker.Lock()
item, ok := this.m[key]
if ok {
result := types.Int64(item.Value) + delta
result = types.Int64(item.Value) + delta
item.Value = result
item.expiredAt = expiredAt
} else {