Collapse All Expand All

C#

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

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Store the value corresponding to this entry.

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

# Syntax

C#
    public virtual void SetValue(
    	Object value,
    	bool isSynthetic
    )

#### Parameters

value
  Type: System..::.Object
  The new value for this entry.

isSynthetic
  Type: System..::.Boolean
  Pass true only if the insertion into or modification of the cache should be treated as a synthetic event.

#### Implements

IInvocableCacheEntry..::.SetValue(Object, Boolean)

# Remarks

If the entry does not exist, then the entry will be created by invoking this method, even with a null value (assuming the cache supports null values).

Unlike the property Value, this method does not return the previous value, and as a result may be significantly less expensive (in terms of cost of execution) for certain cache implementations.

# See Also

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