CacheManager config

This commit is contained in:
redkale
2024-06-07 14:58:42 +08:00
parent 1a4e2986ad
commit 5e5577e685
2 changed files with 338 additions and 338 deletions

View File

@@ -32,7 +32,6 @@ import org.redkale.util.AnyValue;
import org.redkale.util.RedkaleException;
import org.redkale.util.ThrowSupplier;
import org.redkale.util.TypeToken;
import org.redkale.util.Utility;
/**
* 缓存管理器
@@ -110,7 +109,7 @@ public class CacheManagerService implements CacheManager, Service {
if (this.enabled) {
this.localSource.init(conf);
String remoteSourceName = conf.getValue("remote");
if (remoteSource == null && Utility.isNotBlank(remoteSourceName)) {
if (remoteSource == null && remoteSourceName != null) {
this.broadcastable = conf.getBoolValue("broadcastable", true);
CacheSource source = application.loadCacheSource(remoteSourceName, false);
if (source == null) {