Assembly: soss_namedcache (in soss_namedcache.dll) Version: 22.214.171.124
public void Update( Guid id, Object obj, bool unlockAfterUpdate )
Public Sub Update ( id As Guid, obj As Object, unlockAfterUpdate As Boolean )
- Type: SystemGuid
- Type: SystemObject
The new value for the object in the shared cache. The argument must be serializable, and it cannot be null.
- Type: SystemBoolean
If the NamedCache instance is not holding a lock for the specified object, this parameter is ignored.
If unlockAfterUpdate is true and the NamedCache is holding a lock for the object then the lock will be released when the update operation completes.
If unlockAfterUpdate is false and the NamedCache is holding a lock for the object then the lock will continue to be held when the update operation completes.
|ObjectNotFoundException||Thrown if the object to update does not exist in the cache.|
|StateServerException||Thrown if ScaleOut StateServer is unavailable or has experienced an internal error.|
|ArgumentNullException||Thrown if obj is null.|
Care should be taken when performing unlocked updates on objects. An unlocked update will not block for locks held by another clients, so other clients may have the object data changed underneath them despite the locks they hold.