Table of Contents

Method GetMetadataAsync

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

GetMetadataAsync(TKey, CancellationToken)

Gets server metadata for an object stored in the ScaleOut service.

public Task<CacheResponse<TKey, ObjectMetadata>> GetMetadataAsync(TKey key, CancellationToken cancellationToken = default)

Parameters

key TKey

Identifier of the object in the cache.

cancellationToken CancellationToken

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

Returns

Task<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:

ServerResultDescription
RetrievedThe object's metadata was successfully retrieved from the ScaleOut service.
NotFoundThe requested object was not found in the ScaleOut service.
RetrievedStale If GeoServer Pull replication is used but the WAN link between datacenters is down, RetrievedStale is returned to indicate that the proxy's metadata returned from the local ScaleOut service may be stale.