public interface JCacheUtil
CacheManager
. This also allows for the encapsulation of implementation-specific cache configurations that may
not be supported by the generic JCache (JSR 107) APIs.Modifier and Type | Method and Description |
---|---|
javax.cache.Cache<Object,Object> |
createCache(String cacheName,
int ttlSeconds,
int maxElementsInMemory)
Returns a new Cache with the appropriate cache name, TTL, and maxElements.
|
<K,V> javax.cache.Cache<K,V> |
createCache(String cacheName,
int ttlSeconds,
int maxElementsInMemory,
Class<K> key,
Class<V> value)
Returns a new Cache with the appropriate cache name, TTL, and maxElements.
|
<K,V> javax.cache.Cache<K,V> |
getCache(String cacheName)
Returns the cache associated with the name or null if no cache exists.
|
javax.cache.CacheManager |
getCacheManager() |
javax.cache.CacheManager getCacheManager()
javax.cache.Cache<Object,Object> createCache(String cacheName, int ttlSeconds, int maxElementsInMemory)
cacheName
- ttlSeconds
- maxElementsInMemory
- <K,V> javax.cache.Cache<K,V> createCache(String cacheName, int ttlSeconds, int maxElementsInMemory, Class<K> key, Class<V> value)
cacheName
- ttlSeconds
- maxElementsInMemory
- key
- value
- <K,V> javax.cache.Cache<K,V> getCache(String cacheName)
cacheName
- Copyright © 2022. All rights reserved.