Table of Contents

Method RemoveLockedAsync

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

RemoveLockedAsync(TKey, LockToken, CancellationToken)

Removes a locked object from the cache.

public Task<CacheResponse<TKey, TValue>> RemoveLockedAsync(TKey key, LockToken lockToken, CancellationToken cancellationToken = default)

Parameters

key TKey

Identifier of the object in the cache.

lockToken LockToken

A non-empty lock token that was acquired from an earlier locking call.

cancellationToken CancellationToken

A token used to propagate notification that this operation should be canceled.

Returns

Task<CacheResponse<TKey, TValue>>

Remarks

The Result property of the response will contain one of the following ServerResult outcomes:

ServerResultDescription
RemovedThe locked object was successfully removed from the ScaleOut service.
NotFoundThe 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.