Package org.apache.commons.jexl3
Interface JexlCache<K,V> 
- Type Parameters:
- K- source
- V- script or template
public interface JexlCache<K,V> 
Caching scripts or templates interface.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionintcapacity()Returns the cache capacity, the maximum number of elements it can contain.voidclear()Clears the cache.default Collection<Map.Entry<K, V>> entries()Produces the cache entry set.Gets a value from cache.Puts a value in cache.intsize()Returns the cache size, the actual number of elements it contains.
- 
Method Details- 
capacityint capacity()Returns the cache capacity, the maximum number of elements it can contain.- Returns:
- the cache capacity
 
- 
clearvoid clear()Clears the cache.
- 
entriesProduces the cache entry set.For implementations testing only - Returns:
- the cache entry list
 
- 
getGets a value from cache.- Parameters:
- key- the cache entry key
- Returns:
- the cache entry value
 
- 
putPuts a value in cache.- Parameters:
- key- the cache entry key
- script- the cache entry value
- Returns:
- the previously associated value if any
 
- 
sizeint size()Returns the cache size, the actual number of elements it contains.- Returns:
- the cache size
 
 
-