Note: This API is now obsolete.
Locks the cached object to prevent other clients from updating or removing it and returns the object corresponding to the key.
Namespace: Soss.Compat.WSAF
Assembly: soss_wsaf_compat (in soss_wsaf_compat.dll) Version: 1.1.0.100 (1.1.0.100)
Syntax
[ObsoleteAttribute("Individual object lock timeouts are not supported. The timeout parameter of this GetAndLock method signature will be ignored.", false)] public Object GetAndLock( string key, TimeSpan timeout, out DataCacheLockHandle lockHandle, string region )
Parameters
- key
- Type: SystemString
The unique identifier used to access the object in the cache. - timeout
- Type: SystemTimeSpan
The amount of time that object remains locked. - lockHandle
- Type: Soss.Compat.WSAFDataCacheLockHandle
The DataCacheLockHandle object required to unlock the object (output parameter). - region
- Type: SystemString
The name of the region where the object is stored.
Return Value
Type: ObjectThe object in the cache that was stored in the cache with the specified key.
Remarks
See Also