admin
2021-04-02 d551bef5e2b09bd98681cf97807988c9863e66fc
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();
    }
}