Class RedisSessionModule.Config

  • Enclosing class:
    RedisSessionModule

    public static class RedisSessionModule.Config
    extends java.lang.Object
    Configuration for Redis Session Storage.
    • Constructor Summary

      Constructors 
      Constructor Description
      Config()  
      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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 Password
        host - Redis host address
        port - 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