InvocableCacheExInsertIfAbsent Method |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
If the specified key is not already associated with a value
(or is mapped to null) associates it with the given value and
returns null, else returns the current value.
Namespace:
Tangosol.Net.Cache
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntaxpublic static Object InsertIfAbsent(
this IInvocableCache invocable,
Object key,
Object value
)
Parameters
- invocable
- Type: Tangosol.Net.CacheIInvocableCache
The interface it extends.
- key
- Type: SystemObject
Key with which the specified value is to be associated.
- value
- Type: SystemObject
Value to be associated with the specified key.
Return Value
Type:
Object
The current 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