Share via


DataCacheFactory.Timeout Property

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The duration of time, in milliseconds, that the cache client will wait to communicate with the cache cluster before it throws a timeout exception.

Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)

Syntax

'Declaration
Public Shared WriteOnly Property Timeout As TimeSpan
'Usage
Dim value As TimeSpan

DataCacheFactory.Timeout = value
public static TimeSpan Timeout { set; }
public:
static property TimeSpan Timeout {
    void set (TimeSpan value);
}
/** @property */
public static void set_Timeout (TimeSpan value)
public static function set Timeout (value : TimeSpan)

Property Value

A System.Timespan object that represents the duration of time, in milliseconds, that the cache client will wait to communicate with the cache cluster before it throws a timeout exception.

Remarks

The default value is 15000 (15 seconds). We do not recommend specifying a value less than 10000 (10 seconds).

When configuring the cache client with an XML-based application configuration file, this value is specified with the timeout attribute in the dataCacheClient element.

For more information, see Application Configuration Settings (Velocity).

See Also

Reference

DataCacheFactory Class
DataCacheFactory Members
Microsoft.Data.Caching Namespace