mirror of https://gitee.com/stylefeng/roses
【7.0.4】#I3T7CX 修复
parent
e70e176548
commit
8abd1db843
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue