NamedCacheQueryAsync Method (IFilter, CancellationToken)

ScaleOut Software NamedCache API
Asynchronously queries the cache for objects that have matching metadata IndexValues as specified via filter.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.1.0.0
Syntax

public Task<ICollection> QueryAsync(
	IFilter filter,
	CancellationToken cancellationToken = null
)

Parameters

filter
Type: Soss.ClientIFilter
an IFilter containing query criteria. An instance of FilterCollection is suitable for this parameter.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
An optional CancellationToken that can be used to cancel the asynchronous operation.

Return Value

Type: TaskICollection
IEnumerable collection of matching CachedObjectId identifiers.
Exceptions

ExceptionCondition
StateServerExceptionThrown if ScaleOut StateServer is unavailable or has experienced an internal error.
See Also

Reference