IObservableCache Interface |
Namespace: Tangosol.Net.Cache
public interface IObservableCache : ICache, IDictionary, ICollection, IEnumerable
The IObservableCache type exposes the following members.
| Name | Description | |
|---|---|---|
| Count | Gets the number of elements contained in the ICollection. (Inherited from ICollection.) | |
| Entries |
Gets a collection of ICacheEntry instances
within the cache.
(Inherited from ICache.) | |
| IsFixedSize | Gets a value indicating whether the IDictionary object has a fixed size. (Inherited from IDictionary.) | |
| IsReadOnly | Gets a value indicating whether the IDictionary object is read-only. (Inherited from IDictionary.) | |
| IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.) | |
| Item | Gets or sets the element with the specified key. (Inherited from IDictionary.) | |
| Keys | Gets an ICollection object containing the keys of the IDictionary object. (Inherited from IDictionary.) | |
| SyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.) | |
| Values | Gets an ICollection object containing the values in the IDictionary object. (Inherited from IDictionary.) |
| Name | Description | |
|---|---|---|
| Add | Adds an element with the provided key and value to the IDictionary object. (Inherited from IDictionary.) | |
| AddCacheListener(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.
| |
| AddCacheListener(ICacheListener, Object, Boolean) |
Add a cache listener for a specific key.
| |
| AddCacheListener(ICacheListener, IFilter, Boolean) |
Add a cache listener that receives events based on a filter
evaluation.
| |
| Clear | Removes all elements from the IDictionary object. (Inherited from IDictionary.) | |
| Contains | Determines whether the IDictionary object contains an element with the specified key. (Inherited from IDictionary.) | |
| CopyTo | (Inherited from ICollection.) | |
| GetAll |
Get the values for all the specified keys, if they are in the
cache.
(Inherited from ICache.) | |
| GetEnumerator |
Returns an ICacheEnumerator object for the
ICache instance.
(Inherited from ICache.) | |
| Insert(Object, Object) |
Associates the specified value with the specified key in this
cache.
(Inherited from ICache.) | |
| Insert(Object, Object, Int64) |
Associates the specified value with the specified key in this
cache.
(Inherited from ICache.) | |
| InsertAll |
Copies all of the mappings from the specified dictionary to this
cache (optional operation).
(Inherited from ICache.) | |
| Remove | Removes the element with the specified key from the IDictionary object. (Inherited from IDictionary.) | |
| RemoveCacheListener(ICacheListener) |
Remove a standard cache listener that previously signed up for
all events.
| |
| RemoveCacheListener(ICacheListener, Object) |
Remove a cache listener that previously signed up for events
about a specific key.
| |
| RemoveCacheListener(ICacheListener, IFilter) |
Remove a cache listener that previously signed up for events
based on a filter evaluation.
|
This is primarily intended for caches that have automatic pruning and purging strategies or caches that are asynchronously modified by different threads.