Removes an object with a specific version from the cache in a region.
Namespace: Soss.Compat.WSAFAssembly: soss_wsaf_compat (in soss_wsaf_compat.dll) Version: 1.1.0.100 (1.1.0.100)
public bool Remove(
string key,
DataCacheItemVersion version,
string region
)
Public Function Remove (
key As String,
version As DataCacheItemVersion,
region As String
) As Boolean
public:
bool Remove(
String^ key,
DataCacheItemVersion^ version,
String^ region
)
member Remove :
key : string *
version : DataCacheItemVersion *
region : string -> bool
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. - region
- Type: SystemString
The name of the region where the object is stored.
Return Value
Type:
Booleantrue if the object is removed successfully - otherwise,
false.
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.
Reference