Vana SDK - v3.5.0
    Preparing search index...

    Class InMemoryTokenStore

    In-memory TokenStore implementation.

    Expired entries are evicted lazily on read. Records are shallow-copied on set and get so caller mutations do not leak into stored state.

    Implements

    Index

    Accessors

    Methods

    Accessors

    • get size(): number

      Returns the number of stored entries (including any not yet lazily evicted). Intended for tests and diagnostics.

      Returns number

    Methods

    • Removes the entry for key. No-op if key is absent.

      Parameters

      • key: string

      Returns Promise<void>