Class RedisConfiguration

java.lang.Object
id.luckynetwork.lyrams.lyralibs.core.database.redis.RedisConfiguration

public class RedisConfiguration extends Object
  • Constructor Details

    • RedisConfiguration

      public RedisConfiguration()
  • Method Details

    • setPassword

      public RedisConfiguration setPassword(@Nullable @Nullable String password)
      Sets the password for the Redis server. Set to null if not needed.
      Parameters:
      password - The password to use for authentication.
      Returns:
      The RedisConfiguration object.
    • setClientName

      public RedisConfiguration setClientName(String clientName)
      Sets the client name
      Parameters:
      clientName - The name of the client.
      Returns:
      The RedisConfiguration object.
    • setTimeout

      public RedisConfiguration setTimeout(int timeout)
      Sets the timeout before a connection is considered failed object.
      Parameters:
      timeout - The timeout for the connection to the Redis server.
      Returns:
      The RedisConfiguration object.