Stone.js API
    Preparing search index...
    • The window a timestamp falls in, and when that window ends.

      The index becomes part of the key, so a new window is a new entry that starts at zero: no cleanup job, no read-modify-write, and an entry that ages out on its own. It also makes every instance of a distributed application agree on where the boundary is, without talking to each other.

      Parameters

      • now: number

        The timestamp.

      • windowMs: number

        How long a window lasts.

      Returns { index: number; resetAt: number }

      The window's index and its end.