public class CaffeineRedisCacheManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_CHANGE_TOPIC |
static int |
MAX_EXPIRE_IN_LOCAL
在本地最大的过期时间,这样可以防止内存爆掉,单位:秒
|
Modifier and Type | Method and Description |
---|---|
static RedisAsyncRunnable |
getAsyncRedisQueue() |
static CaffeineRedisCache |
getCache(String cacheName) |
static CaffeineRedisCache |
register(String cacheName,
Integer timeToLiveSeconds,
Integer timeToIdleSeconds) |
public static final String CACHE_CHANGE_TOPIC
public static int MAX_EXPIRE_IN_LOCAL
public static CaffeineRedisCache getCache(String cacheName)
public static CaffeineRedisCache register(String cacheName, Integer timeToLiveSeconds, Integer timeToIdleSeconds)
public static RedisAsyncRunnable getAsyncRedisQueue()
Copyright © 2018. All rights reserved.