Class AbstractCacheSweeper

    • Field Detail

      • log

        protected final org.apache.commons.logging.Log log
      • redissonClient

        @Autowired
        protected org.redisson.api.RedissonClient redissonClient
    • Constructor Detail

      • AbstractCacheSweeper

        public AbstractCacheSweeper()
    • Method Detail

      • getDateCacheKey

        protected final String getDateCacheKey()
      • getLockCacheKey

        protected final String getLockCacheKey()
      • getSweepTime

        protected abstract int getSweepTime()
      • forceSweep

        public abstract void forceSweep()
      • sweep

        public void sweep()
        Description copied from interface: Sweepable
        Placeholder for Spring to call via Quartz. Required for @Transactional sweeper methods.
        Specified by:
        sweep in interface Sweepable
      • evictOldKeys

        protected <T extends BaseIdentity> void evictOldKeys​(Collection<T> collectionFromDatabase,
                                                             String key,
                                                             org.springframework.data.redis.core.RedisTemplate<String,​?> redisTemplate,
                                                             Function<T,​String> keyExtractor)