Interface OgnlCache<K,V>

Type Parameters:
K - The type for the cache key entries
V - The type for the cache value entries
All Known Implementing Classes:
OgnlCaffeineCache, OgnlDefaultCache, OgnlLRUCache

public interface OgnlCache<K,V>
A basic cache interface for use with OGNL processing (such as Expression, BeanInfo). Implementation must be thread-safe. All OGNL caches will have an eviction limit, but setting an extremely high value can simulate an "effectively unlimited" cache.
  • Method Details

    • get

      V get(K key)
    • computeIfAbsent

      default V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
      Since:
      7.1
    • put

      void put(K key, V value)
    • putIfAbsent

      void putIfAbsent(K key, V value)
    • size

      int size()
    • clear

      void clear()
    • getEvictionLimit

      int getEvictionLimit()
    • setEvictionLimit

      void setEvictionLimit(int cacheEvictionLimit)