public class CachingHelperProviderDefault extends Object implements CachingHelperProvider
| Constructor and Description |
|---|
CachingHelperProviderDefault() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeCacheManager()
Close and release the cache resources.
|
<K,V> javax.cache.Cache<K,V> |
getOrCreateCache(String name,
Class<K> keyClass,
Class<V> valueClass,
javax.cache.configuration.Configuration<K,V> config)
Create a cache with the specified configuration.
|
<K,V> javax.cache.Cache<K,V> |
getOrCreateCache(String name,
Class<K> keyClass,
Class<V> valueClass,
javax.cache.expiry.Duration duration)
Create a cache with the specified duration.
|
public void closeCacheManager()
CachingHelperProvidercloseCacheManager in interface CachingHelperProviderpublic <K,V> javax.cache.Cache<K,V> getOrCreateCache(String name, Class<K> keyClass, Class<V> valueClass, javax.cache.expiry.Duration duration)
CachingHelperProvidergetOrCreateCache in interface CachingHelperProviderK - the cache entry key typeV - the cache entry value valuename - the cache namekeyClass - the key class typevalueClass - the value class typeduration - the cache entry durationpublic <K,V> javax.cache.Cache<K,V> getOrCreateCache(String name, Class<K> keyClass, Class<V> valueClass, javax.cache.configuration.Configuration<K,V> config)
CachingHelperProvidergetOrCreateCache in interface CachingHelperProviderK - the cache entry key typeV - the cache entry value valuename - the cache namekeyClass - the key class typevalueClass - the value class typeconfig - the cache configurationCopyright © 2019. All rights reserved.