Modifier and Type | Field and Description |
---|---|
Map<Long,CaffeineCache> |
IpStats.cacheMap
key: 时长,单位:秒
|
Modifier and Type | Method and Description |
---|---|
CaffeineCache |
DefaultHttpRequestHandler.getStaticResCache() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultHttpRequestHandler.setStaticResCache(CaffeineCache staticResCache) |
Modifier and Type | Field and Description |
---|---|
Map<Long,CaffeineCache> |
IpPathAccessStats.cacheMap
key: 时长段,单位:秒
value: CaffeineCache: key: ip, value: IpAccessStat
|
Modifier and Type | Field and Description |
---|---|
Map<Long,CaffeineCache> |
TokenPathAccessStats.cacheMap
key: 时长段,单位:秒
value: CaffeineCache: key: token, value: TokenAccessStat
|
Modifier and Type | Method and Description |
---|---|
static CaffeineCache |
CacheUtils.getCaffeineCache(Long timeToLiveSeconds,
Long timeToIdleSeconds)
根据参数获取或创建CaffeineCache对象
|
Modifier and Type | Field and Description |
---|---|
static Map<String,CaffeineCache> |
CaffeineCache.map |
Modifier and Type | Method and Description |
---|---|
static CaffeineCache |
CaffeineCache.getCache(String cacheName) |
static CaffeineCache |
CaffeineCache.getCache(String cacheName,
boolean skipNull) |
static CaffeineCache |
CaffeineCache.register(String cacheName,
Long timeToLiveSeconds,
Long timeToIdleSeconds)
timeToLiveSeconds和timeToIdleSeconds不允许同时为null
|
static CaffeineCache |
CaffeineCache.register(String cacheName,
Long timeToLiveSeconds,
Long timeToIdleSeconds,
com.github.benmanes.caffeine.cache.RemovalListener<String,Serializable> removalListener) |
Constructor and Description |
---|
CaffeineRedisCache(String cacheName,
CaffeineCache caffeineCache,
RedisCache redisCache) |
Copyright © 2021. All rights reserved.