Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.1.3.0.0)
E47892-01

The NearCache type exposes the following members.

Constructors

  NameDescription
Public methodNearCache(ICache, INamedCache)
Construct a NearCache, using a backINamedCache as the complete (back) storage and frontICache as a near (front) storage using the CompositeCacheStrategyType invalidation strategy.
Public methodNearCache(ICache, INamedCache, CompositeCacheStrategyType)
Construct a NearCache, using a backINamedCache as the complete (back) storage and frontICache as a near (front) storage using the CompositeCacheStrategyType invalidation strategy.

Methods

  NameDescription
Public methodAdd
Associates the specified value with the specified key in this cache.
(Inherited from CompositeCache.)
Public methodAddCacheListener(ICacheListener)
Add a standard cache listener that will receive all events (inserts, updates, deletes) that occur against the cache, with the key, old-value and new-value included.
Public methodAddCacheListener(ICacheListener, Object, Boolean)
Add a cache listener for a specific key.
Public methodAddCacheListener(ICacheListener, IFilter, Boolean)
Add a cache listener that receives events based on a filter evaluation.
Public methodAddIndex
Add an index to this IQueryCache.
Public methodAggregate(ICollection, IEntryAggregator)
Perform an aggregating operation against the entries specified by the passed keys.
Public methodAggregate(IFilter, IEntryAggregator)
Perform an aggregating operation against the collection of entries that are selected by the given IFilter.
Public methodClear
Clears both the front and back caches.
(Inherited from CompositeCache.)
Public methodContains
Check whether or not this cache contains a mapping for the specified key.
(Inherited from CompositeCache.)
Public methodCopyTo
Copies the elements of the BackCache to an Array, starting at a particular Array index.
(Inherited from CompositeCache.)
Public methodDestroy
Release and destroy this instance of INamedCache.
Public methodDispose
Calls Release()()()() to release the resources associated with this cache.
(Inherited from CompositeCache.)
Protected methodEnsureInvalidationStrategy
Ensure that a strategy has been choosen and that any appropriate global listeners have been registered.
(Inherited from CompositeCache.)
Public methodEquals
Compares the specified object with this dictionary for equality.
(Inherited from CompositeCache.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAll
Get the values for all the specified keys, if they are in the cache.
(Inherited from CompositeCache.)
Public methodGetEntries(IFilter)
Return a collection of the entries contained in this cache that satisfy the criteria expressed by the filter.
Public methodGetEntries(IFilter, IComparer)
Return a collection of the entries contained in this cache that satisfy the criteria expressed by the filter.
Public methodGetEnumerator
Returns an enumerator that iterates through a cache.
(Inherited from CompositeCache.)
Public methodGetHashCode
Return the hash code value for this dictionary.
(Inherited from CompositeCache.)
Public methodGetKeys
Return a collection of the keys contained in this cache for entries that satisfy the criteria expressed by the filter.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValues(IFilter)
Return a collection of the values contained in this cache for entries that satisfy the criteria expressed by the filter.
Public methodGetValues(IFilter, IComparer)
Return a collection of the values contained in this cache for entries that satisfy the criteria expressed by the filter.
Public methodInsert(Object, Object)
Associates the specified value with the specified key in this cache.
(Inherited from CompositeCache.)
Public methodInsert(Object, Object, Int64)
Associates the specified value with the specified key in this cache.
(Inherited from CompositeCache.)
Public methodInsertAll
Copies all of the mappings from the specified dictionary to this cache (optional operation).
(Inherited from CompositeCache.)
Protected methodInstantiateBackCacheListener
Factory pattern: instantiate back cache listener.
(Inherited from CompositeCache.)
Protected methodInstantiateFrontCacheListener
Factory pattern: instantiate front cache listener.
(Inherited from CompositeCache.)
Protected methodInvalidateFront
Invalidate the key from the front.
(Inherited from CompositeCache.)
Public methodInvoke
Invoke the passed IEntryProcessor against the entry specified by the passed key, returning the result of the invocation.
Public methodInvokeAll(ICollection, IEntryProcessor)
Invoke the passed IEntryProcessor against the entries specified by the passed keys, returning the result of the invocation for each.
Public methodInvokeAll(IFilter, IEntryProcessor)
Invoke the passed IEntryProcessor against the set of entries that are selected by the given IFilter, returning the result of the invocation for each.
Public methodLock(Object)
Attempt to lock the specified item and return immediately.
Public methodLock(Object, Int64)
Attempt to lock the specified item within the specified period of time.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnMemberJoined
Invoked when an IMember has joined the service.
Public methodOnMemberLeaving
Invoked when an IMember is leaving the service.
Public methodOnMemberLeft
Invoked when an IMember has left the service.
Protected methodRegisterBackServiceMemberEventHandler
Register an event handler for member events on back caches's service.
Protected methodRegisterFrontListener
Register the global front cache listener.
(Inherited from CompositeCache.)
Protected methodRegisterListener()()()()
Register the global back cache listener.
(Inherited from CompositeCache.)
Protected methodRegisterListener(Object)
Register the back cache listener for the specified key.
(Inherited from CompositeCache.)
Public methodRelease()()()()
Release local resources associated with this instance of INamedCache.
(Overrides CompositeCache..::..Release()()()().)
Protected methodRelease(Boolean)
Release this cache, optionally destroying it.
Public methodRemove
Remove the mapping for this key from this cache if present.
(Inherited from CompositeCache.)
Public methodRemoveCacheListener(ICacheListener)
Remove a standard cache listener that previously signed up for all events.
Public methodRemoveCacheListener(ICacheListener, Object)
Remove a cache listener that previously signed up for events about a specific key.
Public methodRemoveCacheListener(ICacheListener, IFilter)
Remove a cache listener that previously signed up for events based on a filter evaluation.
Public methodRemoveIndex
Remove an index from this IQueryCache.
Public methodResetHitStatistics
Reset the cache statistics.
(Inherited from CompositeCache.)
Protected methodResetInvalidationStrategy
Reset the "current invalidation strategy" flag.
(Inherited from CompositeCache.)
Public methodToString
For debugging purposes, format the contents of the CompositeCache in a human readable format.
(Inherited from CompositeCache.)
Public methodUnlock
Unlock the specified item.
Protected methodUnregisterBackServiceMemberEventHandler
Unregister back caches's service member event handler.
Protected methodUnregisterFrontListener
Unregister the global front cache listener.
(Inherited from CompositeCache.)
Protected methodUnregisterListener()()()()
Unregister the global back cache listener.
(Inherited from CompositeCache.)
Protected methodUnregisterListener(Object)
Unregister the back cache listener for the specified key.
(Inherited from CompositeCache.)
Protected methodValidate
Validate the front cache entry for the specified back cache event.
(Inherited from CompositeCache.)

Fields

  NameDescription
Protected fieldm_strategyCurrent
The current invalidation strategy, which at times could be different from the target strategy.
(Inherited from CompositeCache.)
Protected fieldm_strategyTarget
The invalidation strategy that this cache is to use.
(Inherited from CompositeCache.)

Properties

  NameDescription
Public propertyAverageGetMillis
Determine the average number of milliseconds per "get" invocation since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyAverageHitMillis
Determine the average number of milliseconds per "get" invocation that is a hit.
(Inherited from CompositeCache.)
Public propertyAverageMissMillis
Determine the average number of milliseconds per "get" invocation that is a miss.
(Inherited from CompositeCache.)
Public propertyAveragePruneMillis
Determine the average number of milliseconds per cache pruning.
(Inherited from CompositeCache.)
Public propertyAveragePutMillis
Determine the average number of milliseconds per "put" invocation since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyBackCache
Obtain the INamedCache object that sits behind this NearCache.
Public propertyCacheControl
Obtain the IConcurrentCache that should be used to synchronize the front cache modification access.
(Inherited from CompositeCache.)
Public propertyCacheHits
Determine the rough number of cache hits since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyCacheHitsMillis
Determine the total number of milliseconds (since that last statistics reset) for the "get" operations for which an entry existed in this cache.
(Inherited from CompositeCache.)
Public propertyCacheMisses
Determine the rough number of cache misses since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyCacheMissesMillis
Determine the total number of milliseconds (since that last statistics reset) for the "get" operations for which no entry existed in this map.
(Inherited from CompositeCache.)
Public propertyCacheName
Gets the cache name.
Public propertyCachePrunes
Determine the rough number of cache pruning cycles since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyCachePrunesMillis
Determine the total number of milliseconds (since that last statistics reset) spent on cache pruning.
(Inherited from CompositeCache.)
Public propertyCacheService
Gets the ICacheService that this INamedCache is a part of.
Public propertyCacheStatistics
Obtain the CacheStatistics for this cache.
(Inherited from CompositeCache.)
Public propertyCount
Gets the number of elements contained in the BackCache.
(Inherited from CompositeCache.)
Public propertyEntries
Gets a collection of ICacheEntry instances within the cache.
(Inherited from CompositeCache.)
Public propertyFrontCache
Obtain the front cache reference.
(Inherited from CompositeCache.)
Public propertyHitProbability
Determine the rough probability (0 <= p <= 1) that the next invocation will be a hit, based on the statistics collected since the last reset of the cache statistics.
(Inherited from CompositeCache.)
Public propertyInvalidationHits
Determine the rough number of front cache invalidation hits since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyInvalidationMisses
Determine the rough number of front cache invalidation misses since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyInvalidationStrategy
Obtain the invalidation strategy used by this CompositeCache.
(Inherited from CompositeCache.)
Public propertyIsActive
Specifies whether or not the INamedCache is active.
Protected propertyIsCoherent
Determine if changes to the back cache affect the front cache so that data in the front cache stays in sync.
(Inherited from CompositeCache.)
Public propertyIsFixedSize
Gets a value indicating whether the BackCache object has a fixed size.
(Inherited from CompositeCache.)
Public propertyIsReadOnly
Gets a value indicating whether the BackCache object is read-only.
(Inherited from CompositeCache.)
Public propertyIsSynchronized
Gets a value indicating whether access to the back cache is synchronized (thread safe).
(Inherited from CompositeCache.)
Public propertyItem
Gets or sets the element with the specified key.
(Inherited from CompositeCache.)
Public propertyKeys
Obtain an ICollection of the keys contained in this cache.
(Inherited from CompositeCache.)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the back cache.
(Inherited from CompositeCache.)
Public propertyTotalGets
Determine the total number of "get" operations since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyTotalGetsMillis
Determine the total number of milliseconds spent on "get" operations since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyTotalPuts
Determine the total number of "put" operations since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyTotalPutsMillis
Determine the total number of milliseconds spent on "put" operations since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyTotalRegisterListener
Determine the total number of RegisterListener(Object) operations since the cache statistics were last reset.
(Inherited from CompositeCache.)
Public propertyValues
Obtain an ICollection of the values contained in this cache.
(Inherited from CompositeCache.)

See Also