cl
6 天以前 cb2f02d60aac235f2f9e5ef777e0141fb697c264
rsf-server/src/main/java/com/vincent/rsf/server/system/service/impl/ConfigServiceImpl.java
@@ -111,6 +111,13 @@
        if (StringUtils.isBlank(flag)) {
            return null;
        }
        Config mem = CONFIG_CACHE.get(flag);
        if (isEffectiveConfig(mem)) {
            return mem;
        }
        if (mem != null) {
            CONFIG_CACHE.remove(flag);
        }
        if (redisReady()) {
            Config fromRedis = tryRedisGetConfig(flag);
            if (isEffectiveConfig(fromRedis)) {
@@ -123,13 +130,6 @@
                tryRedisSetexConfig(flag, loaded);
            }
            return loaded;
        }
        Config cached = CONFIG_CACHE.get(flag);
        if (isEffectiveConfig(cached)) {
            return cached;
        }
        if (cached != null) {
            CONFIG_CACHE.remove(flag);
        }
        Config loaded = loadConfigFromDb(flag);
        if (loaded != null) {