public interface CachingHelperProvider
Allows projects to provide a different mechanism for creating their cache requirements.
| 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.
|
void closeCacheManager()
<K,V> javax.cache.Cache<K,V> getOrCreateCache(String name, Class<K> keyClass, Class<V> valueClass, javax.cache.expiry.Duration duration)
K - the cache entry key typeV - the cache entry value valuename - the cache namekeyClass - the key class typevalueClass - the value class typeduration - the cache entry duration<K,V> javax.cache.Cache<K,V> getOrCreateCache(String name, Class<K> keyClass, Class<V> valueClass, javax.cache.configuration.Configuration<K,V> config)
K - 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.