TOC Toolkit API - v0.1.0
    Preparing search index...

    Class SessionStore

    Bounded least-recently-used decision sessions with monotonically fresh identifiers.

    Index
    • Parameters

      • capacity: number = 2

      Returns SessionStore

    • Returns and touches only a session whose complete question key matches.

      Parameters

      • id: string
      • key: string

      Returns Maybe<OpenSession>

    • Stores a session under a fresh id and evicts the oldest entry when necessary.

      Parameters

      Returns string

    • Removes sessions without reusing identifiers that a caller may still hold.

      Returns void