Interface GenericCache
public interface GenericCache
Definition of a generic cache. Allowing for storing arbitrary data in catalogs etc.
-
Method Summary
Modifier and TypeMethodDescription<T> TcomputIfAbsent(QualifiedName name, Object key, Duration ttl, Supplier<T> supplier) Compute or get cached value
-
Method Details
-
computIfAbsent
Compute or get cached value- Parameters:
name- Name of cachekey- Cache keyttl- TTL duration of cache entrysupplier- Supplier that is executed when a cache miss was encountered
-