类 AuthStateRedisCache
java.lang.Object
org.macrocloud.kernel.social.cache.AuthStateRedisCache
- 所有已实现的接口:
me.zhyd.oauth.cache.AuthStateCache
扩展Redis版的state缓存
- 作者:
- yadong.zhang, Chill
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
AuthStateRedisCache
public AuthStateRedisCache()
-
-
方法详细资料
-
cache
存入缓存,默认3分钟- 指定者:
cache在接口中me.zhyd.oauth.cache.AuthStateCache- 参数:
key- 缓存keyvalue- 缓存内容
-
cache
存入缓存- 指定者:
cache在接口中me.zhyd.oauth.cache.AuthStateCache- 参数:
key- 缓存keyvalue- 缓存内容timeout- 指定缓存过期时间(毫秒)
-
get
获取缓存内容- 指定者:
get在接口中me.zhyd.oauth.cache.AuthStateCache- 参数:
key- 缓存key- 返回:
- 缓存内容
-
containsKey
是否存在key,如果对应key的value值已过期,也返回false- 指定者:
containsKey在接口中me.zhyd.oauth.cache.AuthStateCache- 参数:
key- 缓存key- 返回:
- true:存在key,并且value没过期;false:key不存在或者已过期
-