Method RemoveLocked
RemoveLocked(TKey, LockToken, CancellationToken)
Removes a locked object from the cache.
public CacheResponse<TKey, TValue> RemoveLocked(TKey key, LockToken lockToken, CancellationToken cancellationToken = default)
Parameters
keyTKeyIdentifier of the object in the cache.
lockTokenLockTokenA non-empty lock token that was acquired from an earlier locking call.
cancellationTokenCancellationTokenA token used to propagate notification that this operation should be canceled.
Returns
- CacheResponse<TKey, TValue>
Remarks
The Result property of the response will contain one of the following ServerResult outcomes:
| ServerResult | Description |
|---|---|
| Removed | The locked object was successfully removed from 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. |