Interface GenericCache


public interface GenericCache
Definition of a generic cache. Allowing for storing arbitrary data in catalogs etc.
  • Method Details

    • computIfAbsent

      <T> T computIfAbsent(QualifiedName name, Object key, Duration ttl, Supplier<T> supplier)
      Compute or get cached value
      Parameters:
      name - Name of cache
      key - Cache key
      ttl - TTL duration of cache entry
      supplier - Supplier that is executed when a cache miss was encountered