Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
AbstractKeySetBasedCache Class
Members See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
AbstractKeySetBasedCache is an extension to the AbstractKeyBasedCache that has a full awareness of the set of keys upon which the cache is based.

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

# Syntax

C#
    public abstract class AbstractKeySetBasedCache : AbstractKeyBasedCache

# Remarks

As a result, it is possible to optimize the implementation of a number of methods that benefit from a knowledge of the entire set of keys.

Read-only implementations must implement GetInternalKeysCollection()()() and Get(Object). Read/write implementations must additionally implement Insert(Object, Object, Int64) and Remove(Object). If the implementation has any cost of returning an "old value", then the InsertAll(IDictionary) and RemoveBlind(Object) methods should also be implemented. The only other obvious method for optimization is Clear()()(), if the implementation is able to do it in bulk.

# Inheritance Hierarchy

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

# See Also

AbstractKeySetBasedCache Members
Tangosol.Net.Cache.Support Namespace