Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.1.3.0.0)
E47892-01
AbstractKeyBasedCache is a base class for ICache implementations.

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

Syntax

C#
public abstract class AbstractKeyBasedCache : ICache, 
	IDictionary, ICollection, IEnumerable

Remarks

AbstractKeyBasedCache requires a read-only sub-type to implement only Get(Object) and GetKeysEnumerator()()()() methods, and a read-write sub-type to additionally implement only Insert(Object, Object, Int64) and Remove(Object).

A number of the methods have implementations provided, but are extremely inefficient for caches that contain large amounts of data, including Clear()()()(), Contains(Object) and Count. Furthermore, if any of a number of method implementations has any cost of returning an "old value", then the InsertAll(IDictionary) and RemoveBlind(Object) methods should also be implemented.

Inheritance Hierarchy

System..::..Object
  Tangosol.Net.Cache.Support..::..AbstractKeyBasedCache
    Tangosol.Net.Cache.Support..::..AbstractKeySetBasedCache

See Also