Removes object from the cache.
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
)
Public Function Remove (
key As String,
version As DataCacheItemVersion
) As Boolean
public:
bool Remove(
String^ key,
DataCacheItemVersion^ version
)
member Remove :
key : string *
version : DataCacheItemVersion -> 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.
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