Description
This method
public IOperationResult<T> Upsert<T>(string key, T value, TimeSpan expiration)
{
return this.Upsert<T>(key, value, expiration.ToTtl(), this.GlobalTimeout);
}
use the following method
public IOperationResult<T> Upsert<T>(string key, T value, uint expiration, TimeSpan timeout)
{
return this._requestExecuter.SendWithRetry<T>((IOperation<T>) new Set<T>(key, value, (IVBucket) null, this._transcoder, timeout.GetSeconds()));
}
expiration param isn't considered. This cause the object to have infinite duration.
Attachments
Issue Links
- is triggering
-
NCBC-1576 MemcachedBucket.Upsert TTL is set to 0 - causing infinite lifetime
- Resolved
For Gerrit Dashboard: NCBC-1538 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
83941,3 | NCBC-1538: fix expiration bug in MemcachedBucket.Upsert | master | couchbase-net-client | Status: MERGED | +2 | +1 |