Interface CacheBuilderService


public interface CacheBuilderService
A cache builder abstraction for use with different cache implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T, U> ClientCache<T,U>
    build(int maximumSize, Duration expiration)
    Build a cache.
  • Method Details

    • build

      <T, U> ClientCache<T,U> build(int maximumSize, Duration expiration)
      Build a cache.
      Type Parameters:
      T - the key type
      U - the value type
      Parameters:
      maximumSize - the maximum cache size
      expiration - the duration after which items should expire from the cache
      Returns:
      the cache