Make database optional

This commit is contained in:
Mariell Hoversholm committed 2020-12-26 17:17:50 +01:00
1 parent 3f93d180a0
commit fa2d5b2d60
2 files changed
+9 -4

No files matched your search

@@ -11,7 +11,7 @@ public final class RedisCredentials {
@Setting private @NonNull String host = "localhost";
@Setting private @Nullable String password = "";
@Setting private int port = 6379;
@Setting private int database = 0;
@Setting private @Nullable Integer database = null;
public @NonNull String host() {
return this.host;
@@ -25,7 +25,7 @@ public final class RedisCredentials {
return this.port;
}
public int database() {
public @Nullable Integer database() {
return this.database;
}