【7.0.1】【cache】更新cache包结构

pull/3/head
fengshuonan 2021-02-26 22:06:02 +08:00
parent 3b51532c7e
commit b17b4c5b2f
22 changed files with 32 additions and 32 deletions

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kernel.auth.session.cache.logintoken; package cn.stylefeng.roses.kernel.auth.session.cache.logintoken;
import cn.hutool.cache.impl.TimedCache; 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; import java.util.Set;

View File

@ -1,6 +1,6 @@
package cn.stylefeng.roses.kernel.auth.session.cache.logintoken; 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 org.springframework.data.redis.core.RedisTemplate;
import java.util.Set; import java.util.Set;

View File

@ -2,7 +2,7 @@ package cn.stylefeng.roses.kernel.auth.session.cache.loginuser;
import cn.hutool.cache.impl.TimedCache; import cn.hutool.cache.impl.TimedCache;
import cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser; 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; import static cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants.LOGGED_TOKEN_PREFIX;

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kernel.auth.session.cache.loginuser; package cn.stylefeng.roses.kernel.auth.session.cache.loginuser;
import cn.stylefeng.roses.kernel.auth.api.pojo.login.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 org.springframework.data.redis.core.RedisTemplate;
import static cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants.LOGGED_TOKEN_PREFIX; import static cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants.LOGGED_TOKEN_PREFIX;

View File

@ -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.CacheObj;
import cn.hutool.cache.impl.TimedCache; import cn.hutool.cache.impl.TimedCache;

View File

@ -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.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.api.constants.CacheConstants;
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
/** /**
* valueObject * valueObject

View File

@ -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.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.api.constants.CacheConstants;
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
/** /**
* valueString * valueString

View File

@ -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.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;

View File

@ -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.api.constants.CacheConstants;
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
/** /**

View File

@ -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.api.constants.CacheConstants;
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
/** /**

View File

@ -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.JSON;
import com.alibaba.fastjson.parser.Feature; import com.alibaba.fastjson.parser.Feature;

View File

@ -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.CacheUtil;
import cn.hutool.cache.impl.TimedCache; import cn.hutool.cache.impl.TimedCache;
import cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants; import cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants;
import cn.stylefeng.roses.kernel.cache.operator.DefaultMemoryCacheOperator; import cn.stylefeng.roses.kernel.cache.memory.operator.DefaultMemoryCacheOperator;
import cn.stylefeng.roses.kernel.cache.operator.DefaultStringMemoryCacheOperator; import cn.stylefeng.roses.kernel.cache.memory.operator.DefaultStringMemoryCacheOperator;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

View File

@ -1,2 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cn.stylefeng.roses.kernel.cache.starter.memory.GunsMemoryCacheAutoConfiguration cn.stylefeng.roses.kernel.cache.memory.starter.GunsMemoryCacheAutoConfiguration

View File

@ -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.redis.operator.DefaultRedisCacheOperator;
import cn.stylefeng.roses.kernel.cache.operator.DefaultStringRedisCacheOperator; import cn.stylefeng.roses.kernel.cache.redis.operator.DefaultStringRedisCacheOperator;
import cn.stylefeng.roses.kernel.cache.serializer.FastJson2JsonRedisSerializer; import cn.stylefeng.roses.kernel.cache.redis.serializer.FastJson2JsonRedisSerializer;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.connection.RedisConnectionFactory;

View File

@ -1,2 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cn.stylefeng.roses.kernel.cache.starter.redis.GunsRedisCacheAutoConfiguration cn.stylefeng.roses.kernel.cache.redis.starter.GunsRedisCacheAutoConfiguration

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kemel.validator.blackwhite.cache; package cn.stylefeng.roses.kemel.validator.blackwhite.cache;
import cn.hutool.cache.impl.TimedCache; 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; import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.BLACK_LIST_CACHE_KEY_PREFIX;

View File

@ -1,6 +1,6 @@
package cn.stylefeng.roses.kemel.validator.blackwhite.cache; 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 org.springframework.data.redis.core.RedisTemplate;
import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.BLACK_LIST_CACHE_KEY_PREFIX; import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.BLACK_LIST_CACHE_KEY_PREFIX;

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kemel.validator.blackwhite.cache; package cn.stylefeng.roses.kemel.validator.blackwhite.cache;
import cn.hutool.cache.impl.TimedCache; 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; import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.WHITE_LIST_CACHE_KEY_PREFIX;

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kemel.validator.blackwhite.cache; package cn.stylefeng.roses.kemel.validator.blackwhite.cache;
import cn.hutool.cache.impl.TimedCache; 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; import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.WHITE_LIST_CACHE_KEY_PREFIX;

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kemel.validator.captcha.cache; package cn.stylefeng.roses.kemel.validator.captcha.cache;
import cn.hutool.cache.impl.TimedCache; 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; import static cn.stylefeng.roses.kernel.validator.api.constants.CaptchaConstants.CAPTCHA_CACHE_KEY_PREFIX;

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kemel.validator.captcha.cache; package cn.stylefeng.roses.kemel.validator.captcha.cache;
import cn.hutool.cache.impl.TimedCache; 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; import static cn.stylefeng.roses.kernel.validator.api.constants.CaptchaConstants.CAPTCHA_CACHE_KEY_PREFIX;

View File

@ -1,7 +1,7 @@
package cn.stylefeng.roses.kemel.validator.count.cache; package cn.stylefeng.roses.kemel.validator.count.cache;
import cn.hutool.cache.impl.TimedCache; 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; import static cn.stylefeng.roses.kernel.validator.api.constants.ValidatorConstants.COUNT_VALIDATE_CACHE_KEY_PREFIX;