Interface DynamicCacheManager<C>

Type Parameters:
C - The native cache implementation
All Known Implementing Classes:
DefaultDynamicCacheManager, HazelcastCacheManager, InfinispanCacheManager

public interface DynamicCacheManager<C>

A contract for a cache manager that does not have pre-defined caches.

Since:
1.3.0
Author:
James Kleeh
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull SyncCache<C>
    Retrieve a cache for the given name.
  • Method Details

    • getCache

      @NonNull @NonNull SyncCache<C> getCache(String name)
      Retrieve a cache for the given name. If the cache does not previously exist, a new one will be created. The cache instance should not be cached internally because the cache manager will maintain the instance for future requests.
      Parameters:
      name - The name of the cache
      Returns:
      The SyncCache instance