Share via


DataCache.Unlock Method

 

Releases objects locked in the cache. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object.

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

Overload List

Name Description
System_CAPS_pubmethod Unlock(String, DataCacheLockHandle)

Releases objects locked in the cache. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object.

System_CAPS_pubmethod Unlock(String, DataCacheLockHandle, String)

Releases objects locked in the specified region. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. This overload is not supported in Windows Azure Shared Caching.

System_CAPS_pubmethod Unlock(String, DataCacheLockHandle, TimeSpan)

Releases objects locked in the cache. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. Specifies a new timeout value for the cached object.

System_CAPS_pubmethod Unlock(String, DataCacheLockHandle, TimeSpan, String)

Releases objects locked in the specified region. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. Specifies a new timeout value for the cached object. This overload is not supported in Windows Azure Shared Caching.

See Also

DataCache Class
Microsoft.ApplicationServer.Caching Namespace

Return to top