Interface ICache

All Known Implementing Classes:
PurgableCache

public interface ICache
A cache is a simple key-value pair that stores calculated values for specific key objects

NOTE These caches are not expected to be used outside query backend implementations

Since:
1.7
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getValue(Object key, Class<? extends T> clazz, Supplier<T> valueProvider)
    Return a selected value for the key object.
  • Method Details

    • getValue

      <T> T getValue(Object key, Class<? extends T> clazz, Supplier<T> valueProvider)
      Return a selected value for the key object. If the value is not available in the cache yet, the given provider is called once
      Since:
      2.0