Package me.zhyd.oauth.cache
Interface AuthCache
- All Known Implementing Classes:
AuthDefaultCache
public interface AuthCache
JustAuth缓存,用来缓存State
- Since:
- 1.9.3
- Author:
- yadong.zhang (yadong.zhang0415(a)gmail.com)
-
Method Summary
-
Method Details
-
set
设置缓存- Parameters:
key- 缓存KEYvalue- 缓存内容
-
set
设置缓存,指定过期时间- Parameters:
key- 缓存KEYvalue- 缓存内容timeout- 指定缓存过期时间(毫秒)
-
get
获取缓存- Parameters:
key- 缓存KEY- Returns:
- 缓存内容
-
containsKey
是否存在key,如果对应key的value值已过期,也返回false- Parameters:
key- 缓存KEY- Returns:
- true:存在key,并且value没过期;false:key不存在或者已过期
-
pruneCache
default void pruneCache()清理过期的缓存
-