Click or drag to resize

IObservableCacheAddCacheListener Method (ICacheListener, Object, Boolean)

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Add a cache listener for a specific key.

Namespace:  Tangosol.Net.Cache
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
void AddCacheListener(
	ICacheListener listener,
	Object key,
	bool isLite
)

Parameters

listener
Type: Tangosol.Net.CacheICacheListener
The ICacheListener to add.
key
Type: SystemObject
The key that identifies the entry for which to raise events.
isLite
Type: SystemBoolean
true to indicate that the CacheEventArgs objects do not have to include the OldValue and NewValue property values in order to allow optimizations.
Remarks

The listeners will receive CacheEventArgs objects, but if isLite is passed as true, they might not contain the OldValue and NewValue properties.

To unregister the ICacheListener, use the RemoveCacheListener(ICacheListener, Object) method.

See Also