Replaces and unlocks an object in the cache.
Namespace: Soss.Compat.WSAF
Assembly: soss_wsaf_compat (in soss_wsaf_compat.dll) Version: 1.1.0.100 (1.1.0.100)
Syntax
public DataCacheItemVersion PutAndUnlock( string key, Object value, DataCacheLockHandle lockHandle, IEnumerable<DataCacheTag> tags )
Parameters
- key
- Type: SystemString
The unique identifier used to access the object in the cache. - value
- Type: SystemObject
The object to add or replace in the cache. - lockHandle
- Type: Soss.Compat.WSAFDataCacheLockHandle
The DataCacheLockHandle lock ticket that was obtained when the object was locked. - tags
- Type: System.Collections.GenericIEnumerableDataCacheTag
List of DataCacheTag objects associated with the cached object.
Return Value
Type: DataCacheItemVersionThe DataCacheItemVersion object representing the version of the object after the Put operation completes.
Remarks
Tags may only be used to retrieve a cached object if that object is stored in a region. This overload does not save the object to a region and tags can simply be used as object's metadata.
If the lockHandle parameter is not equal to the DataCacheLockHandle object obtained from the method that is used to lock the object, a DataCacheException object is thrown with the ErrorCode property set to InvalidCacheLockHandle, and the object is not updated.
See Also