|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.jknack.handlebars.cache.ConcurrentMapCache
public class ConcurrentMapCache
A TemplateCache based on a ConcurrentMap.
| Constructor Summary | |
|---|---|
ConcurrentMapCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
Remove all mappings from the cache. |
void |
evict(Object key)
Evict the mapping for this key from this cache if it is present. |
Template |
get(Object key)
Return the value to which this cache maps the specified key. |
void |
put(Object key,
Template template)
Associate the specified value with the specified key in this cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcurrentMapCache()
| Method Detail |
|---|
public void clear()
TemplateCache
clear in interface TemplateCachepublic void evict(Object key)
TemplateCache
evict in interface TemplateCachekey - the key whose mapping is to be removed from the cachepublic Template get(Object key)
TemplateCachenull if the cache contains no mapping for this key.
get in interface TemplateCachekey - key whose associated value is to be returned.
null if the cache contains no mapping for this key
public void put(Object key,
Template template)
TemplateCacheIf the cache previously contained a mapping for this key, the old value is replaced by the specified value.
put in interface TemplateCachekey - the key with which the specified value is to be associatedtemplate - the value to be associated with the specified key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||