Class DefaultCacheService

All Implemented Interfaces:
Direct Known Subclasses:
AndroidCacheService, DesktopCacheService, IOSCacheService

public class DefaultCacheService extends Object implements CacheService
  • Constructor Details

    • DefaultCacheService

      public DefaultCacheService()
  • Method Details

    • getCache

      public <K, V> Cache<K,V> getCache(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.