@groovy.util.logging.Slf4j class RedisCacheService extends java.lang.Object
Modifiers | Name | Description |
---|---|---|
static int |
CacheExpireInSeconds |
Type | Name and description |
---|---|
java.lang.Boolean |
CacheEnabled |
grails.core.GrailsApplication |
grailsApplication |
RedissonService |
redissonService |
Constructor and description |
---|
RedisCacheService
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Map<java.lang.String, java.lang.String> |
getCacheStatistics() |
<T> |
T |
getCachedValue(java.lang.String cacheKey) |
|
void |
removeCache(java.lang.String cacheKey) |
|
void |
setCache(java.lang.String cacheKey, java.lang.Object cacheValue) Set cache, of cache value contains any domain object, it will be discard before put to cache. see http://docs.grails.org/latest/ref/Domain%20Classes/discard.html |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#getClass(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#hashCode(), java.lang.Object#equals(java.lang.Object), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#notify() |
Set cache, of cache value contains any domain object, it will be discard before put to cache. see http://docs.grails.org/latest/ref/Domain%20Classes/discard.html
cacheName
- name of the cachecacheKey
- cache key, will be used to retrieve the cache valuecacheValue
- value to cacheGroovy Documentation