Package me.zhyd.oauth.cache
Interface AuthStateCache
- All Known Implementing Classes:
AuthDefaultStateCache
public interface AuthStateCache
State缓存接口,方便用户扩展
- Since:
- 1.10.0
- Author:
- yangkai.shen
-
Method Summary
-
Method Details
-
cache
存入缓存- Parameters:
key- 缓存keyvalue- 缓存内容
-
cache
存入缓存- Parameters:
key- 缓存keyvalue- 缓存内容timeout- 指定缓存过期时间(毫秒)
-
get
获取缓存内容- Parameters:
key- 缓存key- Returns:
- 缓存内容
-
containsKey
是否存在key,如果对应key的value值已过期,也返回false- Parameters:
key- 缓存key- Returns:
- true:存在key,并且value没过期;false:key不存在或者已过期
-