Constructor and Description |
---|
AuthDefaultCache() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
是否存在key,如果对应key的value值已过期,也返回false
|
String |
get(String key)
获取缓存
|
void |
pruneCache()
清理过期的缓存
|
void |
schedulePrune(long delay)
定时清理
|
void |
set(String key,
String value)
设置缓存
|
void |
set(String key,
String value,
long timeout)
设置缓存
|
public boolean containsKey(String key)
containsKey
in interface AuthCache
key
- 缓存KEYpublic void pruneCache()
pruneCache
in interface AuthCache
public void schedulePrune(long delay)
delay
- 间隔时长,单位毫秒Copyright © 2021. All rights reserved.