Interface RedisSessionStore

  • All Superinterfaces:
    SessionStore

    public interface RedisSessionStore
    extends SessionStore
    A SessionStore that uses a Redis to store the sessions and associated data. This assumes that the redis logical database (i.e. select) is only used to store the sessions to make size query reliable.
    Author:
    Rémy Noël
    • Field Detail

    • Method Detail

      • create

        static RedisSessionStore create​(Vertx vertx,
                                        Redis redis)
        Creates a RedisSessionStore with the default retry TO.
        Parameters:
        vertx - a Vert.x instance
        redis - A Redis client
        Returns:
        the store
      • create

        static RedisSessionStore create​(Vertx vertx,
                                        long retryTimeoutMs,
                                        Redis redis)
        Creates a RedisSessionStore with the given retry TO.
        Parameters:
        vertx - a Vert.x instance
        redis - The given options to establish the connection
        retryTimeoutMs - The time between two consecutive tries
        Returns:
        the store