Package org.apache.struts2.ognl
Interface OgnlCache<Key,Value> 
- Type Parameters:
- Key- The type for the cache key entries
- Value- The type for the cache value entries
- All Known Implementing Classes:
- OgnlCaffeineCache,- OgnlDefaultCache,- OgnlLRUCache
public interface OgnlCache<Key,Value> 
A basic cache interface for use with OGNL processing (such as Expression, BeanInfo).
 All OGNL caches will have an eviction limit, but setting an extremely high value can
 simulate an "effectively unlimited" cache.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()intvoidvoidputIfAbsent(Key key, Value value) voidsetEvictionLimit(int cacheEvictionLimit) intsize()
- 
Method Details- 
get
- 
put
- 
putIfAbsent
- 
sizeint size()
- 
clearvoid clear()
- 
getEvictionLimitint getEvictionLimit()
- 
setEvictionLimitvoid setEvictionLimit(int cacheEvictionLimit) 
 
-