Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
ContinuousQueryCache..::.Insert Method (Object, Object)
ContinuousQueryCache Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Associates the specified value with the specified key in this cache.

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

# Syntax

C#
    public override Object Insert(
    	Object key,
    	Object value
    )

#### Parameters

key
  Type: System..::.Object
  Key with which the specified value is to be associated.

value
  Type: System..::.Object
  Value to be associated with the specified key.

#### Return Value

Previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the dictionary previously associated null with the specified key, if the implementation supports null values.

#### Implements

ICache..::.Insert(Object, Object)
ICache..::.Insert(Object, Object)

# Remarks

If the cache previously contained a mapping for this key, the old value is replaced.

Invoking this method is equivalent to the following call:

                Insert(key, value, CacheExpiration.Default);

# See Also

ContinuousQueryCache Class
Insert Overload
Tangosol.Net.Cache Namespace