Fix use spring boot starter may have a "null" key prefix
@@ -41,8 +41,10 @@ public abstract class ExternalCacheBuilder<T extends ExternalCacheBuilder<T>> ex
}
public void setKeyPrefix(String keyPrefix){
+ if (keyPrefix != null) {
getConfig().setKeyPrefixSupplier(() -> keyPrefix);
}
+ }
public void setKeyPrefixSupplier(Supplier<String> keyPrefixSupplier){
getConfig().setKeyPrefixSupplier(keyPrefixSupplier);
