Table of Contents

Method RaiseServiceEventForReadThrough

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

RaiseServiceEventForReadThrough()

Configures the cache to raise a read-through event in a remote event-handling application to populate the cache with an object in the event of a cache miss.

public CacheBuilder<TKey, TValue> RaiseServiceEventForReadThrough()

Returns

CacheBuilder<TKey, TValue>

A builder object that can be used to further configure the cache.

Remarks

A remote event-handling application typically uses the SetLoadObjectHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, ValueFactoryResult<TValue>>) method on the ServiceEvents class to register a read-through event handler when this feature is used.