Class AuthCacheConfig

java.lang.Object
me.zhyd.oauth.cache.AuthCacheConfig

public class AuthCacheConfig extends Object
AuthCache配置类
Since:
1.10.0
Author:
yadong.zhang (yadong.zhang0415(a)gmail.com)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    是否开启定时AuthDefaultCache.pruneCache()的任务
    static long
    默认缓存过期时间:3分钟 鉴于授权过程中,根据个人的操作习惯,或者授权平台的不同(google等),每个授权流程的耗时也有差异,不过单个授权流程一般不会太长 本缓存工具默认的过期时间设置为3分钟,即程序默认认为3分钟内的授权有效,超过3分钟则默认失效,失效后删除
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • timeout

      public static long timeout
      默认缓存过期时间:3分钟 鉴于授权过程中,根据个人的操作习惯,或者授权平台的不同(google等),每个授权流程的耗时也有差异,不过单个授权流程一般不会太长 本缓存工具默认的过期时间设置为3分钟,即程序默认认为3分钟内的授权有效,超过3分钟则默认失效,失效后删除
    • schedulePrune

      public static boolean schedulePrune
      是否开启定时AuthDefaultCache.pruneCache()的任务
  • Constructor Details

    • AuthCacheConfig

      public AuthCacheConfig()