Class ValueFactoryResult<TValue>
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
Properties
- CreatePolicy
Optional policy to associated with the object being added. If null, the cache's default policies will be used.
- ValueToAdd
Value to be added to the cache.