Class RedisSessionModule.Config

  • Enclosing class:
    RedisSessionModule

    public static class RedisSessionModule.Config
    extends Object
    Configuration for Redis Session Storage.
    • Constructor Detail

      • Config

        public Config()
      • Config

        public Config​(String password,
                      String host,
                      Integer port)
        Convenience constructor most of the time not used if you are using Ratpack Config.
        Parameters:
        password - Redis Password
        host - Redis host address
        port - Redis port to use
    • Method Detail

      • getPassword

        public String getPassword()
        Get the password for Redis.
        Returns:
        The password configured to use with Redis
      • setPassword

        public void setPassword​(String password)
        Set the password for Redis.
        Parameters:
        password - The password to use when connecting to Redis
      • getHost

        public String getHost()
        Get the address for Redis.
        Returns:
        String of the host address for Redis
      • setHost

        public void setHost​(String host)
        Set the address for Redis.
        Parameters:
        host - The address for Redis
      • getPort

        public Integer getPort()
        The Redis port.
        Returns:
        The port for Redis
      • setPort

        public void setPort​(Integer port)
        Set the redis port.
        Parameters:
        port - Which port to use for Redis