fishhook-ant - v0.1.0
    Preparing search index...

    Type Alias RememberReplayKey

    RememberReplayKey: (replayKey: string) => Promise<boolean>

    Called once per verified delivery with its replay key. Record the key and return true if it was not already recorded, false if it was. This MUST be one atomic operation (SET key 1 NX PX ... in Redis, INSERT ... ON CONFLICT DO NOTHING in Postgres, with the row count as the answer), or two copies of a replay arriving together both pass.

    Keep keys for at least twice the tolerance for a scheme with a timestamp. For a scheme without one, a captured delivery can be replayed at any time, so keep them as long as you would act on the delivery at all.

    If it throws, the error is rethrown unchanged and the delivery is refused.

    Type Declaration

      • (replayKey: string): Promise<boolean>
      • Parameters

        • replayKey: string

        Returns Promise<boolean>