Method SetBackingStoreEvent
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
TimeSpanThe default interval between backing store events.
backingStoreMode
BackingStoreModeThe 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.