Class RedisConfiguration
java.lang.Object
cz.foresttech.forestredis.shared.models.RedisConfiguration
RedisConfiguration object stores Redis server's credentials. Can be used to create JedisPool instance.
-
Constructor Summary
ConstructorsConstructorDescriptionRedisConfiguration
(String hostName, int port, String username, String password, boolean ssl) Constructs the instance of the object -
Method Summary
Modifier and TypeMethodDescriptionredis.clients.jedis.JedisPool
build()
CreatesJedisPool
instance using the stored values.
-
Constructor Details
-
RedisConfiguration
Constructs the instance of the object- Parameters:
hostName
- Hostname of the Redis serverport
- Port of the Redis serverusername
- 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()CreatesJedisPool
instance using the stored values.- Returns:
JedisPool
object obtained using the values stored inside this object.
-