Documentation
    Preparing search index...

    Class MemorySessionStore

    Implements

    Index

    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)

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

    • 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>