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 Details

  • Method Details

    • 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
      retryTimeoutMs - The time between two consecutive tries
      redis - The given options to establish the connection
      Returns:
      the store