NamedCacheRemove Method (CachedObjectId)

ScaleOut Software NamedCache API
Removes the object from the cache. No exception will be thrown and no action will be taken if the specified object does not exist in the cache.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.1.0.0
Syntax

public void Remove(
	CachedObjectId id
)

Parameters

id
Type: Soss.ClientCachedObjectId
Object identifier.
Exceptions

ExceptionCondition
StateServerExceptionThrown if ScaleOut StateServer is unavailable or has experienced an internal error.
Remarks

If the cached object was previously locked via this NamedCache instance, the lock will be released if the Remove operation completes successfully.

Care should be taken when performing unlocked removals of objects. An unlocked removal will not block for locks held by another clients, so other clients may have the object removed from the cache underneath them despite the locks they hold. Use the AcquireLock(CachedObjectId) method prior to calling Remove(CachedObjectId) to ensure that no other clients are holding a lock on the object.

See Also

Reference