public class CacheConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
schedulePrune
是否开启定时
DefaultCache.pruneCache()的任务 |
static long |
timeout
默认缓存过期时间:3分钟
根据个人的操作习惯,或者平台的不同,每个流程的耗时也有差异,不过单个授权流程一般不会太长
本缓存工具默认的过期时间设置为3分钟,即程序默认认为3分钟内的授权有效,超过3分钟则默认失效,失效后删除
|
| Constructor and Description |
|---|
CacheConfig() |
public static long timeout
public static boolean schedulePrune
DefaultCache.pruneCache()的任务Copyright © 2019. All rights reserved.