Class RedisConfiguration
java.lang.Object
id.luckynetwork.lyrams.lyralibs.core.database.redis.RedisConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetClientName(String clientName) Sets the client namesetPassword(@Nullable String password) Sets the password for the Redis server.setTimeout(int timeout) Sets the timeout before a connection is considered failed object.
-
Constructor Details
-
RedisConfiguration
public RedisConfiguration()
-
-
Method Details
-
setPassword
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
Sets the client name- Parameters:
clientName- The name of the client.- Returns:
- The RedisConfiguration object.
-
setTimeout
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.
-