Class PurgableCache

java.lang.Object
tools.refinery.interpreter.matchers.util.PurgableCache
All Implemented Interfaces:
ICache

public class PurgableCache extends Object implements ICache
Since:
1.7
  • Constructor Details

    • PurgableCache

      public PurgableCache()
  • Method Details

    • getValue

      public <T> T getValue(Object key, Class<? extends T> clazz, Supplier<T> valueProvider)
      Description copied from interface: ICache
      Return a selected value for the key object. If the value is not available in the cache yet, the given provider is called once
      Specified by:
      getValue in interface ICache
    • purge

      public void purge()
      Removes all values stored in the cache