Method SetStoreObjectHandlerAsync
SetStoreObjectHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, TValue, Task>)
[This method has been deprecated] Sets a callback method for handling write-behind events. The object provided to the callback should be stored in a persistent backing store.
[Obsolete("Use synchronous SetStoreObjectHandler instead.")]
public static Task SetStoreObjectHandlerAsync<TKey, TValue>(Cache<TKey, TValue> cache, Func<TKey, TValue, Task> callback)
Parameters
cache
Cache<TKey, TValue>The cache that will push write-behind events.
callback
Func<TKey, TValue, Task>Callback that writes the provided object to a backing store.
Returns
Type Parameters
TKey
TValue