Skip to main content

RedisSessions

Implements

  • unknown

Index

Constructors

constructor

Methods

publiccreateSession

  • createSession(userId: string, token: string, connection?: ConnectionInformations, extraData?: object): Promise<string>
  • Parameters

    • userId: string
    • token: string
    • connection: ConnectionInformations = {}
    • optionalextraData: object

    Returns Promise<string>

publicfindSessionById

  • findSessionById(sessionId: string): Promise<any>
  • Parameters

    • sessionId: string

    Returns Promise<any>

publicfindSessionByToken

  • findSessionByToken(token: string): Promise<any>
  • Parameters

    • token: string

    Returns Promise<any>

publicinvalidateAllSessions

  • invalidateAllSessions(userId: string, excludedSessionIds?: string[]): Promise<void>
  • Parameters

    • userId: string
    • optionalexcludedSessionIds: string[]

    Returns Promise<void>

publicinvalidateSession

  • invalidateSession(sessionId: string): Promise<void>
  • Parameters

    • sessionId: string

    Returns Promise<void>

publicupdateSession

  • updateSession(sessionId: string, connection: ConnectionInformations): Promise<void>
  • Parameters

    • sessionId: string
    • connection: ConnectionInformations

    Returns Promise<void>