Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
Tangosol.Net.Cache
InvocableCacheEx Class
InvocableCacheEx Methods
Replace Method
Replace Method (IInvocableCache, Object, Object)
Replace Method (IInvocableCache, Object, Object, Object)
InvocableCacheEx
Replace Method (IInvocableCache, Object, Object)
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14
c
(14.1.1.0)
F23534-02
Replaces the entry for the specified key only if it is currently mapped to some value.
Namespace:
Tangosol.Net.Cache
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
Copy
public
static
Object
Replace
(
this
IInvocableCache
invocable
,
Object
key
,
Object
value
)
Parameters
invocable
Type:
Tangosol.Net.Cache
IInvocableCache
The interface it extends.
key
Type:
System
Object
Key with which the specified value is associated.
value
Type:
System
Object
Value to be associated with the specified key.
Return Value
Type:
Object
The previous value associated with the specified key, or null if there was no mapping for the key.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IInvocableCache
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
InvocableCacheEx Class
Replace Overload
Tangosol.Net.Cache Namespace
Copyright © 2000, 2024, Oracle and/or its affiliates. All rights reserved.