public class CaffeineCacheManager extends Object
Modifier and Type | Method and Description |
---|---|
static CaffeineCache |
getCache(String cacheName) |
static CaffeineCache |
getCache(String cacheName,
boolean skipNull) |
static CaffeineCache |
register(String cacheName,
Integer timeToLiveSeconds,
Integer timeToIdleSeconds)
timeToLiveSeconds和timeToIdleSeconds不允许同时为null
|
static CaffeineCache |
register(String cacheName,
Integer timeToLiveSeconds,
Integer timeToIdleSeconds,
Integer maximumSize,
com.github.benmanes.caffeine.cache.RemovalListener<String,Serializable> removalListener) |
public static CaffeineCache getCache(String cacheName, boolean skipNull)
public static CaffeineCache getCache(String cacheName)
public static CaffeineCache register(String cacheName, Integer timeToLiveSeconds, Integer timeToIdleSeconds)
cacheName
- timeToLiveSeconds
- timeToIdleSeconds
- public static CaffeineCache register(String cacheName, Integer timeToLiveSeconds, Integer timeToIdleSeconds, Integer maximumSize, com.github.benmanes.caffeine.cache.RemovalListener<String,Serializable> removalListener)
Copyright © 2018. All rights reserved.