SALES: 1-800-867-1380

ResetObjectTimeout Method (String, TimeSpan, String)

Resets the object timeout value, defining how long objects reside in the region before expiring. The value specified for the object overrides the default settings for the cache.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

public void ResetObjectTimeout(
	string key,
	TimeSpan newTimeout,
	string region
)

Parameters

key
Type: System..::..String
The unique value that is used to identify the object in the region.
newTimeout
Type: System..::..TimeSpan
The amount of time that the object should reside in the cache before expiration.
region
Type: System..::..String
The name of the region where the object resides.

Unless explicitly specified at the time the object was added to the cache, the timeout value specified in the named cache configuration is used. This method allows you to re-start the clock for the object expiration.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft