【7.0.4】#I3T7CX 修复

pull/19/MERGE
fengshuonan 2021-06-01 22:08:28 +08:00
parent e70e176548
commit 8abd1db843
2 changed files with 10 additions and 10 deletions

View File

@ -24,9 +24,9 @@
*/ */
package cn.stylefeng.roses.kemel.security.blackwhite.cache; package cn.stylefeng.roses.kemel.security.blackwhite.cache;
import cn.hutool.cache.impl.TimedCache; import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
import cn.stylefeng.roses.kernel.security.api.constants.CounterConstants; import cn.stylefeng.roses.kernel.security.api.constants.CounterConstants;
import org.springframework.data.redis.core.RedisTemplate;
/** /**
@ -35,10 +35,10 @@ import cn.stylefeng.roses.kernel.security.api.constants.CounterConstants;
* @author fengshuonan * @author fengshuonan
* @date 2020/11/15 15:26 * @date 2020/11/15 15:26
*/ */
public class WhiteListRedisCache extends AbstractMemoryCacheOperator<Long> { public class WhiteListRedisCache extends AbstractRedisCacheOperator<Long> {
public WhiteListRedisCache(TimedCache<String, Long> timedCache) { public WhiteListRedisCache(RedisTemplate<String, Long> redisTemplate) {
super(timedCache); super(redisTemplate);
} }
@Override @Override

View File

@ -24,9 +24,9 @@
*/ */
package cn.stylefeng.roses.kemel.security.captcha.cache; package cn.stylefeng.roses.kemel.security.captcha.cache;
import cn.hutool.cache.impl.TimedCache; import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
import cn.stylefeng.roses.kernel.security.api.constants.CaptchaConstants; import cn.stylefeng.roses.kernel.security.api.constants.CaptchaConstants;
import org.springframework.data.redis.core.RedisTemplate;
/** /**
* *
@ -34,10 +34,10 @@ import cn.stylefeng.roses.kernel.security.api.constants.CaptchaConstants;
* @author chenjinlong * @author chenjinlong
* @date 2021/1/15 13:44 * @date 2021/1/15 13:44
*/ */
public class CaptchaRedisCache extends AbstractMemoryCacheOperator<Long> { public class CaptchaRedisCache extends AbstractRedisCacheOperator<Long> {
public CaptchaRedisCache(TimedCache<String, Long> timedCache) { public CaptchaRedisCache(RedisTemplate<String, Long> redisTemplate) {
super(timedCache); super(redisTemplate);
} }
@Override @Override