UMIS SDK
    Preparing search index...

    Function createMemoryReplayStore

    • An in-memory ReplayStore. checkAndRemember answers true the first time it sees an id and false for every further presentation of it. An id is remembered until its expiresAt has passed: expired ids are dropped when a new id comes in, so memory stays bounded by what is still presentable. When max ids are held and none has expired, new ids are refused (the answer is false), so a full store rejects instead of forgetting.

      Time comes from opts.now (seconds) when it is given; without it, from the now of the verification calls that use the store. The store never reads a clock of its own. size() counts the ids that are still remembered.

      Parameters

      • Optionalopts: { max?: number; now?: () => number }

      Returns ReplayStore & { size(): number }