Class DefaultCacheService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      getCache​(java.lang.String cacheName)
      Returns a Cache instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCacheService

        public DefaultCacheService()
    • Method Detail

      • getCache

        public <K,​V> Cache<K,​V> getCache​(java.lang.String cacheName)
        Description copied from interface: CacheService
        Returns a Cache instance. The name is used to allow for multiple cache instances to be created, with the name being a unique identifier, returning the same cache every time when given the same name.
        Specified by:
        getCache in interface CacheService
        Type Parameters:
        K - The key type for the cache
        V - The value type for the cache
        cacheName - The name of the cache.
        A named Cache instance.