Documentation
    Preparing search index...

    Interface ReplayStore

    Store of seen invocations, used to reject replays.

    interface ReplayStore {
        checkAndSet(key: string, expiration: number | null): Promise<boolean>;
    }
    Index
    • Atomically record key and resolve true, or resolve false if key was already recorded and has not expired.

      Parameters

      • key: string

        Replay key of the invocation, see Invocation.replayKey

      • expiration: number | null

        Unix time in seconds after which the key can be forgotten, or null to keep it forever

      Returns Promise<boolean>