Class CaffeineCacheSupplier

    • Constructor Detail

      • CaffeineCacheSupplier

        public CaffeineCacheSupplier()
    • Method Detail

      • newCache

        public <K,​V> Cache<K,​V> newCache​(long timeout)
        Description copied from interface: CacheSupplier
        Creates a new cache with the specified timeout
        Specified by:
        newCache in interface CacheSupplier
        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