NamedCacheRemove Method (Byte)

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:

public void Remove(
	byte[] id


Type: SystemByte
Object identifier (must be either 16 or 32 bytes in length).

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

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(Byte) method prior to calling Remove(Byte) to ensure that no other clients are holding a lock on the object.

See Also