Cache.Entry
Constructor and Description |
---|
NoCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Empties the cache.
|
Cache.Entry |
get(java.lang.String key)
Retrieves an entry from the cache.
|
void |
initialize()
Performs any potentially long-running actions needed to initialize the cache;
will be called from a worker thread.
|
void |
invalidate(java.lang.String key,
boolean fullExpire)
Invalidates an entry in the cache.
|
void |
put(java.lang.String key,
Cache.Entry entry)
Adds or replaces an entry to the cache.
|
void |
remove(java.lang.String key)
Removes an entry from the cache.
|
public void clear()
Cache
public Cache.Entry get(java.lang.String key)
Cache
get
in interface Cache
key
- Cache keyCache.Entry
or null in the event of a cache misspublic void put(java.lang.String key, Cache.Entry entry)
Cache
public void invalidate(java.lang.String key, boolean fullExpire)
Cache
invalidate
in interface Cache
key
- Cache keyfullExpire
- True to fully expire the entry, false to soft expirepublic void remove(java.lang.String key)
Cache
public void initialize()
Cache
initialize
in interface Cache