类 CleanAuthCacheTask

java.lang.Object
io.github.mangocrisp.spring.taybct.tool.scheduling.job.AbstractScheduledTaskJob
io.github.mangocrisp.spring.taybct.tool.scheduling.job.RedisScheduledTaskJob
io.github.mangocrisp.spring.taybct.auth.task.job.CleanAuthCacheTask
所有已实现的接口:
io.github.mangocrisp.spring.taybct.tool.scheduling.job.IScheduledTaskJob, Runnable

@AutoConfiguration @ConditionalOnClass({org.springframework.jdbc.core.JdbcTemplate.class,org.springframework.data.redis.core.RedisTemplate.class}) @Scheduler("cleanAuthCache") public class CleanAuthCacheTask extends io.github.mangocrisp.spring.taybct.tool.scheduling.job.RedisScheduledTaskJob
清理鉴权缓存,这里包括了
- 使用 oauth2 自带的几种鉴权方式带来的,没有自动清理的缓存
- 使用自定义的鉴权生成的 token ,刷新时间已经超时,了但是没有自动清理的缓存
从以下版本开始:
1.1.0
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final org.springframework.jdbc.core.JdbcTemplate
     
    private io.github.mangocrisp.spring.taybct.tool.core.message.IMessageSendService
     
    private static final String
     
    private static final String
     
    private static final String
     

    从类继承的字段 io.github.mangocrisp.spring.taybct.tool.scheduling.job.AbstractScheduledTaskJob

    cron, description, key, logRecorder, params, startTime, stopTime
  • 构造器概要

    构造器
    构造器
    说明
    CleanAuthCacheTask(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.data.redis.core.RedisTemplate<String,String> redisTemplate, org.springframework.core.env.Environment env)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected Consumer<com.alibaba.fastjson2.JSONObject>
     
    void
    run(Map<String,Object> params)
     

    从类继承的方法 io.github.mangocrisp.spring.taybct.tool.scheduling.job.RedisScheduledTaskJob

    getMinCacheTime, run

    从类继承的方法 io.github.mangocrisp.spring.taybct.tool.scheduling.job.AbstractScheduledTaskJob

    setCron, setDescription, setKey, setParams, startRecord, stopRecord, stopRecord

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • jdbcTemplate

      private final org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
    • PK_FILTER

      private static final String PK_FILTER
      另请参阅:
    • TABLE_NAME

      private static final String TABLE_NAME
      另请参阅:
    • REMOVE_AUTHORIZATION_SQL

      private static final String REMOVE_AUTHORIZATION_SQL
      另请参阅:
    • messageSendService

      private io.github.mangocrisp.spring.taybct.tool.core.message.IMessageSendService messageSendService
  • 构造器详细资料

    • CleanAuthCacheTask

      public CleanAuthCacheTask(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.data.redis.core.RedisTemplate<String,String> redisTemplate, org.springframework.core.env.Environment env)
  • 方法详细资料

    • getLogRecorder

      protected Consumer<com.alibaba.fastjson2.JSONObject> getLogRecorder()
      覆盖:
      getLogRecorder 在类中 io.github.mangocrisp.spring.taybct.tool.scheduling.job.AbstractScheduledTaskJob
    • run

      public void run(Map<String,Object> params)