Class RedisConf

java.lang.Object
com.kamikazejam.kamicommon.redis.util.RedisConf

public class RedisConf extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedisConf(@NotNull String address, int port, @Nullable String password)
    Creates a RedisConfig object with the given address, port, and password
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull io.lettuce.core.RedisURI
     
    static @NotNull RedisConf
    of(@NotNull String address)
    Creates a RedisConfig object with the given address Defaults: port 6379, no authentication
    static @NotNull RedisConf
    of(@NotNull String address, int port)
    Creates a RedisConfig object with the given address and port Defaults: no authentication
    static @NotNull RedisConf
    of(@NotNull String address, int port, @NotNull String password)
    Creates a RedisConfig object with the given address, port, and password

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisConf

      public RedisConf(@NotNull @NotNull String address, int port, @Nullable @Nullable String password)
      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

      @NotNull public static @NotNull RedisConf of(@NotNull @NotNull String address)
      Creates a RedisConfig object with the given address Defaults: port 6379, no authentication
    • of

      @NotNull public static @NotNull RedisConf of(@NotNull @NotNull String address, int port)
      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