Package ratpack.session.store
Class RedisSessionModule.Config
- java.lang.Object
-
- ratpack.session.store.RedisSessionModule.Config
-
- Enclosing class:
- RedisSessionModule
public static class RedisSessionModule.Config extends java.lang.Object
Configuration for Redis Session Storage.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHost()
Get the address for Redis.java.lang.String
getPassword()
Get the password for Redis.java.lang.Integer
getPort()
The Redis port.void
setHost(java.lang.String host)
Set the address for Redis.void
setPassword(java.lang.String password)
Set the password for Redis.void
setPort(java.lang.Integer port)
Set the redis port.
-
-
-
Constructor Detail
-
Config
public Config()
-
Config
public Config(java.lang.String password, java.lang.String host, java.lang.Integer port)
Convenience constructor most of the time not used if you are using Ratpack Config.- Parameters:
password
- Redis Passwordhost
- Redis host addressport
- Redis port to use
-
-
Method Detail
-
getPassword
public java.lang.String getPassword()
Get the password for Redis.- Returns:
- The password configured to use with Redis
-
setPassword
public void setPassword(java.lang.String password)
Set the password for Redis.- Parameters:
password
- The password to use when connecting to Redis
-
getHost
public java.lang.String getHost()
Get the address for Redis.- Returns:
- String of the host address for Redis
-
setHost
public void setHost(java.lang.String host)
Set the address for Redis.- Parameters:
host
- The address for Redis
-
getPort
public java.lang.Integer getPort()
The Redis port.- Returns:
- The port for Redis
-
setPort
public void setPort(java.lang.Integer port)
Set the redis port.- Parameters:
port
- Which port to use for Redis
-
-