Authored by mali

配置缓存时间

... ... @@ -28,7 +28,7 @@ public class ConfigTypeServiceImpl implements IConfigTypeService {
@PostConstruct
private void init() {
localCache.init(NormalConfigTypeList_CACHE_KEY, 2, TimeUnit.HOURS, (String s, Object o) -> {
localCache.init(NormalConfigTypeList_CACHE_KEY, 5, TimeUnit.MINUTES, (String s, Object o) -> {
LOGGER.info("NormalConfigTypeList init s = {}, o = {}", s, o);
List<ConfigType> expressCompanies = configTypeMapper.selectAllNormal();
return expressCompanies.stream().collect(Collectors.toMap(ConfigType::getCode,ConfigType::getContent));
... ...