SalesBuy
1-855-856-7678
Technical SupportSupport
Adds or replaces an object in the specified region if it is at the specified version. Specifies the timeout value of the cached object. This overload is not supported in Windows Azure Shared Caching.
Namespace: Microsoft.ApplicationServer.Caching
public DataCacheItemVersion Put( string key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, string region )
By passing the oldVersion parameter, this method can maintain concurrency. If another process updates the cached object before this method is called, this method does not update the cached object and returns null.
The timeout value associated with the cached object overrides expiration settings specified in the named cache configuration.