- java.lang.Object
-
- com.gluonhq.attach.cache.impl.DefaultCacheService
-
- All Implemented Interfaces:
CacheService
- Direct Known Subclasses:
AndroidCacheService
,DesktopCacheService
,IOSCacheService
public class DefaultCacheService extends java.lang.Object implements CacheService
-
-
Constructor Summary
Constructors Constructor Description DefaultCacheService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
Cache<K,V>getCache(java.lang.String cacheName)
Returns aCache
instance.
-
-
-
Method Detail
-
getCache
public <K,V> Cache<K,V> getCache(java.lang.String cacheName)
Description copied from interface:CacheService
Returns aCache
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 interfaceCacheService
- Type Parameters:
K
- The key type for the cacheV
- The value type for the cache- Parameters:
cacheName
- The name of the cache.- Returns:
- A named
Cache
instance.
-
-