mirror of https://gitee.com/stylefeng/roses
【7.0.1】【cache】更新cache包结构
parent
3b51532c7e
commit
b17b4c5b2f
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.auth.session.cache.logintoken;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package cn.stylefeng.roses.kernel.auth.session.cache.logintoken;
|
||||
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
import java.util.Set;
|
||||
|
|
|
@ -2,7 +2,7 @@ package cn.stylefeng.roses.kernel.auth.session.cache.loginuser;
|
|||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants.LOGGED_TOKEN_PREFIX;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.auth.session.cache.loginuser;
|
||||
|
||||
import cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants.LOGGED_TOKEN_PREFIX;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.roses.kernel.cache;
|
||||
package cn.stylefeng.roses.kernel.cache.memory;
|
||||
|
||||
import cn.hutool.cache.impl.CacheObj;
|
||||
import cn.hutool.cache.impl.TimedCache;
|
|
@ -1,8 +1,8 @@
|
|||
package cn.stylefeng.roses.kernel.cache.operator;
|
||||
package cn.stylefeng.roses.kernel.cache.memory.operator;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
/**
|
||||
* 默认内存缓存的实现,value存放Object类型
|
|
@ -1,8 +1,8 @@
|
|||
package cn.stylefeng.roses.kernel.cache.operator;
|
||||
package cn.stylefeng.roses.kernel.cache.memory.operator;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
/**
|
||||
* 默认内存缓存的实现,value存放String类型
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.roses.kernel.cache;
|
||||
package cn.stylefeng.roses.kernel.cache.redis;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.cache.operator;
|
||||
package cn.stylefeng.roses.kernel.cache.redis.operator;
|
||||
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
/**
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.cache.operator;
|
||||
package cn.stylefeng.roses.kernel.cache.redis.operator;
|
||||
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.roses.kernel.cache.serializer;
|
||||
package cn.stylefeng.roses.kernel.cache.redis.serializer;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.parser.Feature;
|
||||
|
@ -44,4 +44,4 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T> {
|
|||
return JSON.parseObject(str, clazz, Feature.SupportAutoType);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
package cn.stylefeng.roses.kernel.cache.starter.memory;
|
||||
package cn.stylefeng.roses.kernel.cache.memory.starter;
|
||||
|
||||
import cn.hutool.cache.CacheUtil;
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants;
|
||||
import cn.stylefeng.roses.kernel.cache.operator.DefaultMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.operator.DefaultStringMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.operator.DefaultMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.operator.DefaultStringMemoryCacheOperator;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
cn.stylefeng.roses.kernel.cache.starter.memory.GunsMemoryCacheAutoConfiguration
|
||||
cn.stylefeng.roses.kernel.cache.memory.starter.GunsMemoryCacheAutoConfiguration
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package cn.stylefeng.roses.kernel.cache.starter.redis;
|
||||
package cn.stylefeng.roses.kernel.cache.redis.starter;
|
||||
|
||||
import cn.stylefeng.roses.kernel.cache.operator.DefaultRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.operator.DefaultStringRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.serializer.FastJson2JsonRedisSerializer;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.operator.DefaultRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.operator.DefaultStringRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.serializer.FastJson2JsonRedisSerializer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.redis.connection.RedisConnectionFactory;
|
|
@ -1,2 +1,2 @@
|
|||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
cn.stylefeng.roses.kernel.cache.starter.redis.GunsRedisCacheAutoConfiguration
|
||||
cn.stylefeng.roses.kernel.cache.redis.starter.GunsRedisCacheAutoConfiguration
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kemel.validator.blackwhite.cache;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.BLACK_LIST_CACHE_KEY_PREFIX;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package cn.stylefeng.roses.kemel.validator.blackwhite.cache;
|
||||
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.BLACK_LIST_CACHE_KEY_PREFIX;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kemel.validator.blackwhite.cache;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.WHITE_LIST_CACHE_KEY_PREFIX;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kemel.validator.blackwhite.cache;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.WHITE_LIST_CACHE_KEY_PREFIX;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kemel.validator.captcha.cache;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.validator.api.constants.CaptchaConstants.CAPTCHA_CACHE_KEY_PREFIX;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kemel.validator.captcha.cache;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.validator.api.constants.CaptchaConstants.CAPTCHA_CACHE_KEY_PREFIX;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kemel.validator.count.cache;
|
||||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.COUNT_VALIDATE_CACHE_KEY_PREFIX;
|
||||
|
||||
|
|
Loading…
Reference in New Issue