Revert "Revert "缓存不会过期先去掉""

This reverts commit 5755d5c3a9.
This commit is contained in:
于继存
2023-05-18 17:21:35 +08:00
parent 5755d5c3a9
commit 23db91ac86

View File

@@ -37,7 +37,7 @@ public class SysDictionaryServiceImpl implements ISysDictionaryService{
RedisTemplate redisTemplate;
//缓存配置
@Cacheable(value = CacheName.DICT,key = "'" + CacheName.KEY_DICT + "'+#key", unless = "#result == null")
//@Cacheable(value = CacheName.DICT,key = "'" + CacheName.KEY_DICT + "'+#key", unless = "#result == null")
@Override
public List<DictItem> findByKey(String key) {
if ("org_domain".equals(key)) {