Class RedisConf
java.lang.Object
com.kamikazejam.kamicommon.redis.util.RedisConf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull io.lettuce.core.RedisURI
getURI()
static @NotNull RedisConf
Creates a RedisConfig object with the given address Defaults: port 6379, no authenticationstatic @NotNull RedisConf
Creates a RedisConfig object with the given address and port Defaults: no authenticationstatic @NotNull RedisConf
Creates a RedisConfig object with the given address, port, and password
-
Constructor Details
-
RedisConf
Creates a RedisConfig object with the given address, port, and password- Parameters:
password
- Nullable (for no authentication)
-
-
Method Details
-
getURI
@NotNull public @NotNull io.lettuce.core.RedisURI getURI() -
of
Creates a RedisConfig object with the given address Defaults: port 6379, no authentication -
of
Creates a RedisConfig object with the given address and port Defaults: no authentication -
of
@NotNull public static @NotNull RedisConf of(@NotNull @NotNull String address, int port, @NotNull @NotNull String password) Creates a RedisConfig object with the given address, port, and password
-