Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserSessionMetaDataSerializer<MetaData>

{@link UserSessionMetaData} serializer used by UserSessionRedisStorage.

Type parameters

  • MetaData: UserSessionMetaData<UserSessionDevice, HTTPRequestLocation>

    Type of the user session metadata.

Hierarchy

  • UserSessionMetaDataSerializer

Methods

deserialize

  • deserialize(buffer: Buffer): MetaData
  • Parameters

    • buffer: Buffer

    Returns MetaData

serialize

  • serialize(session: MetaData): Buffer
  • Parameters

    • session: MetaData

    Returns Buffer