Interface CacheSupplier

  • All Known Implementing Classes:
    CaffeineCacheSupplier

    public interface CacheSupplier
    Service interface to instantiate a new Cache.
    Author:
    Simon Legner
    • Method Detail

      • newCache

        <K,​V> Cache<K,​V> newCache​(long timeout)
        Creates a new cache with the specified timeout
        Type Parameters:
        K - the type of keys maintained by this cache
        V - the type of mapped values
        Parameters:
        timeout - timeout in seconds
        Returns:
        a new cache