java.lang.Object
com.gluonhq.attach.cache.impl.DefaultCacheService
- All Implemented Interfaces:
CacheService
- Direct Known Subclasses:
AndroidCacheService
,DesktopCacheService
,IOSCacheService
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultCacheService
public DefaultCacheService()
-
-
Method Details
-
getCache
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.
-