Table of Contents

Method SetBackingStoreEvent

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

SetBackingStoreEvent(TimeSpan, BackingStoreMode)

Sets the cache's default type of backing store event (refresh-ahead, write-behind) and the interval between events, with a minimum granularity of one second. Overrides the config file's setting for this cache.

public CacheBuilder<TKey, TValue> SetBackingStoreEvent(TimeSpan eventInterval, BackingStoreMode backingStoreMode)

Parameters

eventInterval TimeSpan

The default interval between backing store events.

backingStoreMode BackingStoreMode

The default policy for the object's backing store event behavior.

Returns

CacheBuilder<TKey, TValue>

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