Interface CacheProvider

    • Method Detail

      • newCache

        <K,​V> Cache<K,​V> newCache​(CacheConfig<K,​V> cacheConfig,
                                              CachePolicy initialPolicy)
        Creates a brand new Cache (API with unchecked exceptions), based on the passed configuration and policy. It is the caller's responsibility to AutoCloseable.close() a Cache obtained from this when they stop.
      • newCache

        default <K,​V> Cache<K,​V> newCache​(CacheConfig<K,​V> cacheConfig)
        Creates a brand new Cache (API with unchecked exceptions), based on the passed configuration and a default policy. It is the caller's responsibility to AutoCloseable.close() a Cache obtained from this when they stop.
      • newCheckedCache

        default <K,​V,​E extends ExceptionCheckedCache<K,​V,​E> newCheckedCache​(CheckedCacheConfig<K,​V,​E> cacheConfig)
        Creates a brand new CheckedCache (API for checked exceptions), based on the passed configuration and a default policy. It is the caller's responsibility to AutoCloseable.close() a Cache obtained from this when they stop.