Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

AbstractKeyBasedCache is a base class for ICache implementations.

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

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