Table of Contents

Method SetObjectTimeout

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

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 TimeSpan

Timeout for the object, or Zero for an infinite timeout.

timeoutType TimeoutType

The 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.