Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserSessionRedisStorageOptions<MetaData>

Type parameters

Hierarchy

  • UserSessionRedisStorageOptions

Properties

Optional Readonly concurrentSessions

concurrentSessions: number

Maximum number of concurrent sessions that a user can have.
Creating a new session above this threshold will result in an error.
When left undefined, user can have an unlimited number of sessions.

Readonly keyPrefix

keyPrefix: object

Prefixes used for keys stored in Redis.

Type declaration

  • Readonly sessionId: string

    Key prefix used for storing session id as key and metadata as value.

  • Readonly sessions: string

    Key prefix used for storing a list of session id's belonging to a concrete subject.

Readonly serializer

serializer: UserSessionMetaDataSerializer<MetaData>

Serializer used for session metadata serialization.