Class CaffeineCacheSupplier

java.lang.Object
waffle.util.cache.CaffeineCacheSupplier
All Implemented Interfaces:
CacheSupplier

public class CaffeineCacheSupplier extends Object implements CacheSupplier
Author:
Simon Legner
  • Constructor Details

    • CaffeineCacheSupplier

      public CaffeineCacheSupplier()
  • Method Details

    • 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