Class DefaultLettuceSessionStore

    • Constructor Detail

      • DefaultLettuceSessionStore

        public DefaultLettuceSessionStore​(ConnectionPool<io.lettuce.core.api.StatefulRedisConnection<java.lang.String,​SessionData>> pool)
    • Method Detail

      • doInitialize

        protected void doInitialize()
                             throws java.lang.Exception
        Specified by:
        doInitialize in class AbstractComponent
        Throws:
        java.lang.Exception
      • doDestroy

        protected void doDestroy()
                          throws java.lang.Exception
        Specified by:
        doDestroy in class AbstractComponent
        Throws:
        java.lang.Exception
      • load

        public SessionData load​(java.lang.String id)
        Description copied from interface: SessionStore
        Read in session data.
        Parameters:
        id - identity of session to load
        Returns:
        the SessionData matching the id
      • delete

        public boolean delete​(java.lang.String id)
        Description copied from interface: SessionStore
        Delete session data.
        Parameters:
        id - identity of session to delete
        Returns:
        true if the session was deleted
      • exists

        public boolean exists​(java.lang.String id)
        Description copied from interface: SessionStore
        Test if data exists for a given session id.
        Parameters:
        id - Identity of session whose existence should be checked
        Returns:
        true if valid, non-expired session exists
      • doSave

        public void doSave​(java.lang.String id,
                           SessionData data)
        Description copied from class: AbstractSessionStore
        Store the session data persistently.
        Specified by:
        doSave in class AbstractSessionStore
        Parameters:
        id - identity of session to store
        data - info of the session