Fake Mirrors
    Preparing search index...

    Class RedisSessionRepository

    Redis session repository implementation.

    Hierarchy (View Summary)

    Implements

    Constructors

    Methods

    • Upgrades a session.

      This method:

      1. Marks the session as "upgraded".
      2. Increments the session_count of the associated lure.

      Parameters

      • campaignId: string

        The ID of the campaign containing the session

      • lureId: string

        The Lure ID through which the session is updated

      • sessionId: string

        The session ID to upgrade

      • secret: string

        The session secret

      Returns Promise<void>

      DatabaseError If the campaign does not exist

      DatabaseError If the lure does not exist

      DatabaseError If the session does not exist

      DatabaseError If the secret does not match