DataCacheRemove Method (String, DataCacheItemVersion)Windows Server AppFabric Caching Compatibility Library
Removes object from 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 bool Remove(
	string key,
	DataCacheItemVersion version
)

Parameters

key
Type: SystemString
The unique identifier used to access the object in the cache.
version
Type: Soss.Compat.WSAFDataCacheItemVersion
DataCacheItemVersion of the object to be removed.

Return Value

Type: Boolean
true if the object is removed successfully - otherwise, false.
Remarks

This method's signature supports optimistic concurrency: the object is only removed if the specified version matches the object's current version within the data grid. If another process updates this object before the method call, the object is not removed.
See Also

Reference