admin
2021-04-13 5300c070d95f9f3d6222b149e8431e77e9337637
src/main/java/com/yeshi/buwan/service/imp/system/SystemConfigServiceImpl.java
@@ -25,4 +25,13 @@
    public SystemConfig getConfigByKeyCache(String key) {
        return getConfigByKey(key);
    }
    @Cacheable(value = "configCache", key = "'system-getConfigValueByKey'+'-'+#key")
    @Override
    public String getConfigValueByKeyCache(String key) {
        SystemConfig config = getConfigByKeyCache(key);
        if (config == null)
            return null;
        return config.getValue();
    }
}