Class RedisConfiguration

java.lang.Object
cz.foresttech.forestredis.shared.models.RedisConfiguration

public class RedisConfiguration extends Object
RedisConfiguration object stores Redis server's credentials. Can be used to create JedisPool instance.
  • Constructor Details

    • RedisConfiguration

      public RedisConfiguration(String hostName, int port, String username, String password, boolean ssl)
      Constructs the instance of the object
      Parameters:
      hostName - Hostname of the Redis server
      port - Port of the Redis server
      username - Username used to connect to Redis server (can be null)
      password - Password used to connect to Redis server (can be null)
      ssl - Whether to make the connection with SSL
  • Method Details

    • build

      public redis.clients.jedis.JedisPool build()
      Creates JedisPool instance using the stored values.
      Returns:
      JedisPool object obtained using the values stored inside this object.