Interface LocalCacheProvider

All Superinterfaces:
Provider
All Known Implementing Classes:
DefaultLocalCacheProviderFactory

public interface LocalCacheProvider extends Provider
A Provider to abstract the creation of local, non-clustered, in-memory caches from the underlying cache implementation.
  • Method Details

    • create

      <K, V> LocalCache<K,V> create(LocalCacheConfiguration<K,V> configuration)
      Creates a new LocalCache instance for local caching. LocalCacheProvider implementations are not responsible for managing the lifecycle of created LocalCache instances. It is the responsibility of LocalCache consumers to ensure that LocalCache.close() is called when the cache is no longer required.
      Type Parameters:
      K - the type of the cache Keys used for lookup
      V - the type of the cache Values to be stored
      Parameters:
      configuration - the desired cache configuration
      Returns:
      LocalCache a newly created cache