| | |
| | | package com.ruoyi.system.service.impl;
|
| | |
|
| | | import java.util.Collection;
|
| | | import java.util.List;
|
| | | import javax.annotation.PostConstruct;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | | import com.ruoyi.common.annotation.DataSource;
|
| | | import com.ruoyi.common.constant.Constants;
|
| | | import com.ruoyi.common.constant.CacheConstants;
|
| | | import com.ruoyi.common.constant.UserConstants;
|
| | | import com.ruoyi.common.core.redis.RedisCache;
|
| | | import com.ruoyi.common.core.text.Convert;
|
| | |
| | | import com.ruoyi.system.domain.SysConfig;
|
| | | import com.ruoyi.system.mapper.SysConfigMapper;
|
| | | import com.ruoyi.system.service.ISysConfigService;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | | import javax.annotation.PostConstruct;
|
| | | import java.util.Collection;
|
| | | import java.util.List;
|
| | |
|
| | | /**
|
| | | * 参数配置 服务层实现
|
| | |
| | | @Override
|
| | | public void clearConfigCache()
|
| | | {
|
| | | Collection<String> keys = redisCache.keys(Constants.SYS_CONFIG_KEY + "*");
|
| | | Collection<String> keys = redisCache.keys(CacheConstants.SYS_CONFIG_KEY + "*");
|
| | | redisCache.deleteObject(keys);
|
| | | }
|
| | |
|
| | |
| | | */
|
| | | private String getCacheKey(String configKey)
|
| | | {
|
| | | return Constants.SYS_CONFIG_KEY + configKey;
|
| | | return CacheConstants.SYS_CONFIG_KEY + configKey;
|
| | | }
|
| | | }
|