Options for the WorkerKVRateLimit class.

interface Options {
    limit: number;
    period: 10 | 60;
}

Properties

Properties

limit: number

The limit (number of requests, number of API calls) to be applied. This is incremented when you call the limit() function in your Worker.

period: 10 | 60

The period to measure increments to the limit over, in seconds. Must be 10 or 60.