Better Payment 0.11.1 API
    Preparing search index...

    Class MemoryIdempotencyStore

    In-process store with expiry. Holds at most maxEntries keys and evicts the oldest first. Suitable for a single instance and for tests.

    Implements

    Index
    • Parameters

      • key: string

      Returns void

    • Parameters

      • key: string

      Returns string | undefined

    • Parameters

      • key: string
      • value: string
      • ttlSeconds: number

      Returns void

    • Stores the value only if the key does not exist; returns whether it was stored

      Parameters

      • key: string
      • value: string
      • ttlSeconds: number

      Returns boolean