类 RedisStateCache
java.lang.Object
com.xingyuv.justauth.support.cache.RedisStateCache
- 所有已实现的接口:
AuthStateCache
Redis作为JustAuth的State的缓存
- 作者:
- yangkai.shen
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
redisTemplate
-
cacheProperties
-
-
构造器详细资料
-
RedisStateCache
public RedisStateCache()
-
-
方法详细资料
-
cache
存入缓存- 指定者:
cache在接口中AuthStateCache- 参数:
key- 缓存keyvalue- 缓存内容
-
cache
存入缓存- 指定者:
cache在接口中AuthStateCache- 参数:
key- 缓存keyvalue- 缓存内容timeout- 指定缓存过期时间(毫秒)
-
get
获取缓存内容- 指定者:
get在接口中AuthStateCache- 参数:
key- 缓存key- 返回:
- 缓存内容
-
containsKey
是否存在key,如果对应key的value值已过期,也返回false- 指定者:
containsKey在接口中AuthStateCache- 参数:
key- 缓存key- 返回:
- true:存在key,并且value没过期;false:key不存在或者已过期
-