com.github.jknack.handlebars
Interface TemplateCache

All Known Implementing Classes:
ConcurrentMapCache

public interface TemplateCache

The template cache system.

Since:
0.1.0
Author:
edgar.espina

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.
 

Method Detail

clear

void clear()
Remove all mappings from the cache.


evict

void evict(Object key)
Evict the mapping for this key from this cache if it is present.

Parameters:
key - the key whose mapping is to be removed from the cache

get

Template get(Object key)
Return the value to which this cache maps the specified key. Returns null if the cache contains no mapping for this key.

Parameters:
key - key whose associated value is to be returned.
Returns:
the value to which this cache maps the specified key, or null if the cache contains no mapping for this key

put

void put(Object key,
         Template template)
Associate the specified value with the specified key in this cache.

If the cache previously contained a mapping for this key, the old value is replaced by the specified value.

Parameters:
key - the key with which the specified value is to be associated
template - the value to be associated with the specified key


Copyright © 2012. All Rights Reserved.