Table of Contents

Class ValueFactoryResult<TValue>

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

Result to return from the valueFactory callback supplied to ReadOrAddAsync(TKey, Func<TKey, ValueFactoryResult<TValue>>, ReadOptions, CancellationToken) or SetLoadObjectHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, Task<ValueFactoryResult<TValue>>>). Allows an object's value, policies, and tags to be specified by a valueFactory callback.

public class ValueFactoryResult<TValue>

Type Parameters

TValue
Inheritance
ValueFactoryResult<TValue>
Inherited Members

Constructors

ValueFactoryResult(TValue, CreatePolicy, IEnumerable<string>)

Constructor.

Properties

CreatePolicy

Optional policy to associated with the object being added. If null, the cache's default policies will be used.

Tags

Optional tags to be associated with the object being added. If null, no tags will be assigned.

ValueToAdd

Value to be added to the cache.