mirror of https://gitee.com/stylefeng/roses
【8.0】【org】整理缓存包结构
parent
73971934d3
commit
270ff4e6a8
|
@ -0,0 +1 @@
|
||||||
|
package cn.stylefeng.roses.kernel.sys.modular.org.cache;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.stylefeng.roses.kernel.sys.modular.org.cache;
|
package cn.stylefeng.roses.kernel.sys.modular.org.cache.subflag;
|
||||||
|
|
||||||
import cn.hutool.cache.impl.TimedCache;
|
import cn.hutool.cache.impl.TimedCache;
|
||||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.stylefeng.roses.kernel.sys.modular.org.cache;
|
package cn.stylefeng.roses.kernel.sys.modular.org.cache.subflag;
|
||||||
|
|
||||||
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
||||||
import cn.stylefeng.roses.kernel.sys.api.constants.SysConstants;
|
import cn.stylefeng.roses.kernel.sys.api.constants.SysConstants;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.stylefeng.roses.kernel.sys.modular.org.listener;
|
package cn.stylefeng.roses.kernel.sys.modular.org.cache.subflag.clear;
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi;
|
import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi;
|
||||||
|
@ -11,13 +11,13 @@ import javax.annotation.Resource;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加组织机构的事件监听器
|
* 监听组织机构相关的事件,从而进行清空子级标识,保障缓存同步
|
||||||
*
|
*
|
||||||
* @author fengshuonan
|
* @author fengshuonan
|
||||||
* @since 2023/7/14 14:19
|
* @since 2023/7/14 21:45
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class OrgOperateListener {
|
public class OrgSubFlagClearListener {
|
||||||
|
|
||||||
@Resource(name = "sysOrgSubFlagCache")
|
@Resource(name = "sysOrgSubFlagCache")
|
||||||
private CacheOperatorApi<Boolean> sysOrgSubFlagCache;
|
private CacheOperatorApi<Boolean> sysOrgSubFlagCache;
|
|
@ -27,7 +27,7 @@ package cn.stylefeng.roses.kernel.sys.starter.cache.org;
|
||||||
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.CacheOperatorApi;
|
import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi;
|
||||||
import cn.stylefeng.roses.kernel.sys.modular.org.cache.SysOrgSubFlagMemoryCache;
|
import cn.stylefeng.roses.kernel.sys.modular.org.cache.subflag.SysOrgSubFlagMemoryCache;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
|
@ -26,7 +26,7 @@ package cn.stylefeng.roses.kernel.sys.starter.cache.org;
|
||||||
|
|
||||||
import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi;
|
import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi;
|
||||||
import cn.stylefeng.roses.kernel.cache.redis.util.CreateRedisTemplateUtil;
|
import cn.stylefeng.roses.kernel.cache.redis.util.CreateRedisTemplateUtil;
|
||||||
import cn.stylefeng.roses.kernel.sys.modular.org.cache.SysOrgSubFlagRedisCache;
|
import cn.stylefeng.roses.kernel.sys.modular.org.cache.subflag.SysOrgSubFlagRedisCache;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
Loading…
Reference in New Issue