public class RedisCacheManager extends Object
Constructor and Description |
---|
RedisCacheManager() |
Modifier and Type | Method and Description |
---|---|
static RedisCache |
getCache(String cacheName) |
static RedisCache |
register(String cacheName,
Integer timeToLiveSeconds,
Integer timeToIdleSeconds)
timeToLiveSeconds和timeToIdleSeconds不允许同时为null
|
public static RedisCache getCache(String cacheName)
public static RedisCache register(String cacheName, Integer timeToLiveSeconds, Integer timeToIdleSeconds)
cacheName
- timeToLiveSeconds
- timeToIdleSeconds
- Copyright © 2018. All rights reserved.