RateLimitCostFactory
RateLimitCostFactory = (
context) =>number
Defined in: packages/pipeline-rate-limit/src/interfaces/rate-limit-options.interface.ts:16
Computes the points a request costs from the pipeline context — e.g. one point per item of a bulk command. Must return a non-negative safe integer.
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”number