MCPcopy
hub / github.com/justauth/JustAuth / AuthStateCache

Interface AuthStateCache

src/main/java/me/zhyd/oauth/cache/AuthStateCache.java:11–44  ·  view source on GitHub ↗

State缓存接口,方便用户扩展 @author yangkai.shen @since 1.10.0

Source from the content-addressed store, hash-verified

9 * @since 1.10.0
10 */
11public interface AuthStateCache {
12 /**
13 * 存入缓存
14 *
15 * @param key 缓存key
16 * @param value 缓存内容
17 */
18 void cache(String key, String value);
19
20 /**
21 * 存入缓存
22 *
23 * @param key 缓存key
24 * @param value 缓存内容
25 * @param timeout 指定缓存过期时间(毫秒)
26 */
27 void cache(String key, String value, long timeout);
28
29 /**
30 * 获取缓存内容
31 *
32 * @param key 缓存key
33 * @return 缓存内容
34 */
35 String get(String key);
36
37 /**
38 * 是否存在key,如果对应key的value值已过期,也返回false
39 *
40 * @param key 缓存key
41 * @return true:存在key,并且value没过期;false:key不存在或者已过期
42 */
43 boolean containsKey(String key);
44}

Callers 6

cache1Method · 0.65
cache2Method · 0.65
getRealStateMethod · 0.65
authorizeMethod · 0.65
getAppAccessTokenMethod · 0.65
authorizeMethod · 0.65

Implementers 1

AuthDefaultStateCachesrc/main/java/me/zhyd/oauth/cache/Auth

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…