Method GetMetadata
GetMetadata(TKey, CancellationToken)
Gets server metadata for an object stored in the ScaleOut service.
public CacheResponse<TKey, ObjectMetadata> GetMetadata(TKey key, CancellationToken cancellationToken = default)
Parameters
key
TKeyIdentifier of the object in the cache.
cancellationToken
CancellationTokenA token used to propagate notification that this operation should be canceled.
Returns
- CacheResponse<TKey, ObjectMetadata>
A CacheResponse<TKey, TValue> containing the outcome of the operation and the retrieved metadata (if successful).
Remarks
The Result property of the response will contain one of the following ServerResult outcomes:
ServerResult | Description |
---|---|
Retrieved | The object's metadata was successfully retrieved from the ScaleOut service. |
NotFound | The requested object was not found in the ScaleOut service. |