Class SessionStoreAbstract

Implemented by

Constructors

Methods

  • lock a session row so that other clients cannot modify its data

    Parameters

    • id: string

      the id of the session to lock

    • lockVerificationValue: string

      the property key to use for safety checking against the stored session

    Returns Promise<boolean>

    boolean - true if lock was successful (unsuccessful lock throws LockError)

    Throws

    LockError - a message declaring that the row is already locked, if that is the case

  • unlock a session row so that other clients can modify its data

    Parameters

    • id: string

      the id of the session to unlock

    Returns Promise<boolean>

  • Removes the given properties from the session object No error will be thrown if any of the provided fields don't exist.

    Returns false if the id wasn't found. Otherwise, returns true.

    Parameters

    • id: string

      the session id

    • properties: string[]

      the names of the properties or indexes to remove

    Returns Promise<boolean>