public class GrailsConcurrentLinkedMapCacheManager extends java.lang.Object implements GrailsCacheManager
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.ConcurrentMap<java.lang.String,org.springframework.cache.Cache> |
cacheMap |
Constructor and Description |
---|
GrailsConcurrentLinkedMapCacheManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
cacheExists(java.lang.String name) |
protected GrailsConcurrentLinkedMapCache |
createConcurrentLinkedMapCache(java.lang.String name,
long capacity) |
boolean |
destroyCache(java.lang.String name) |
org.springframework.cache.Cache |
getCache(java.lang.String name) |
org.springframework.cache.Cache |
getCache(java.lang.String name,
int capacity) |
java.util.Collection<java.lang.String> |
getCacheNames() |
protected final java.util.concurrent.ConcurrentMap<java.lang.String,org.springframework.cache.Cache> cacheMap
public GrailsConcurrentLinkedMapCacheManager()
public java.util.Collection<java.lang.String> getCacheNames()
getCacheNames
in interface org.springframework.cache.CacheManager
public org.springframework.cache.Cache getCache(java.lang.String name)
getCache
in interface org.springframework.cache.CacheManager
public org.springframework.cache.Cache getCache(java.lang.String name, int capacity)
public boolean cacheExists(java.lang.String name)
cacheExists
in interface GrailsCacheManager
public boolean destroyCache(java.lang.String name)
destroyCache
in interface GrailsCacheManager
protected GrailsConcurrentLinkedMapCache createConcurrentLinkedMapCache(java.lang.String name, long capacity)