public class StringCache extends SimpleCache
Cache.ListEntry, Cache.NullIterator
Modifier and Type | Field and Description |
---|---|
String |
cacheName
Name of the cache, printed by logAction()
|
Constructor and Description |
---|
StringCache(String cacheName,
int maxEntries,
int maxTime)
Constructor - establishes the cache.
|
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Get the value corresponding to the given key
|
protected void |
logAction(String action,
Object key,
Object value)
Print out useful debug info
|
addDependency, get, set, set
cleanup, clear, dependenciesValid, getDependencies, has, lastSet, remove, size
public StringCache(String cacheName, int maxEntries, int maxTime)
cacheName
- Name to print out in logAction()maxEntries
- Max # of entries before old ones are flushed.maxTime
- Max age (in seconds) of entries before flushed.