RefreshExclusiveLockAsync(TKey, LockToken, CancellationToken)
Refreshes a lock that is already held by the caller on an existing object in the cache.
public async Task<CacheResponse<TKey, TValue>> RefreshExclusiveLockAsync(TKey key, LockToken lockToken, CancellationToken cancellationToken = default(CancellationToken))
Identifier of the object in the cache.
A non-empty lock token that was acquired from an earlier locking call.
A token used to propagate notification that this operation should be canceled.
A CacheResponse<TKey, TValue> containing the outcome of the operation and (if successful) a lock token.
|Locked||The lock on the object was successfully refreshed in the ScaleOut service.|
|NotFound||The requested object was not found in the ScaleOut service.|
|LockLostError||The exclusive lock on the object was lost (typically due to a lock timeout) and another caller claimed it.|
Use the lock token on the response's LockToken property to perform subsequent operations under the lock.