Method SetObjectTimeout
SetObjectTimeout(TimeSpan, TimeoutType)
Sets the lifetime for the cache's objects in the ScaleOut service, with a minimum granularity of one second. Use Zero for an infinite timeout. Overrides the config file's timeout setting for this cache.
public CacheBuilder<TKey, TValue> SetObjectTimeout(TimeSpan timeout, TimeoutType timeoutType)
Parameters
timeout
TimeSpanTimeout for the object, or Zero for an infinite timeout.
timeoutType
TimeoutTypeThe type of timeout to use (Sliding, Absolute, or ResetOnUpdate).
Returns
- CacheBuilder<TKey, TValue>
A builder object that can be used to further configure the cache.