public interface IGenericCache
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all entries in the cache
|
boolean |
contains(String key)
Returns true if the entry with the specified key is in the
cache
|
void |
dump(Writer writer,
Pattern filter)
Output the cache info to the specified Writer
|
Set<String> |
getKeys()
Returns the set of keys associated with entries in the cache
|
IGenericCache |
newInstance()
Returns a new, empty, instance of this cache object.
|
void |
setAggregator(IAggregator aggregator)
Called for newly created (or de-serialized) caches to set the
aggregator instance for this cache.
|
int |
size()
Returns the number of entries in the layer cache
|
boolean contains(String key)
key
- the entry keyvoid clear()
int size()
Set<String> getKeys()
void dump(Writer writer, Pattern filter) throws IOException
writer
- the target Writerfilter
- Optional filter argumentIOException
void setAggregator(IAggregator aggregator)
IAggregator.getConfig()
may return null if called
from within this method.aggregator
- The aggregator instance for the cacheIGenericCache newInstance()
Copyright © 2011-2015 IBM. All Rights Reserved.