Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
LocalCache..::.Entry..::.Update Method
LocalCache..::.Entry Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Update the entry's value.

Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public virtual void Update(
    	IValueUpdater updater,
    	Object value
    )

#### Parameters

updater
  Type: Tangosol.Util..::.IValueUpdater
  An IValueUpdater used to modify the entry's value.

value
  Type: System..::.Object
  Value to update target object to.

#### Implements

IInvocableCacheEntry..::.Update(IValueUpdater, Object)

# Remarks

Calling this method is semantically equivalent to:

                object target = entry.Value;
                updater.Update(target, value);
                entry.Value = target;

The benefit of using this method is that it may allow the entry implementation to significantly optimize the operation, such as for purposes of delta updates and backup maintenance.

# See Also

LocalCache..::.Entry Class
Tangosol.Net.Cache Namespace