rate-limiter-flexible 10.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTEXT.md +2 -2
- package/package.json +1 -1
package/CONTEXT.md
CHANGED
|
@@ -45,8 +45,8 @@ Options can be changed at runtime: `rateLimiter.points = 50`, `rateLimiter.durat
|
|
|
45
45
|
|
|
46
46
|
| Option | Default | Description |
|
|
47
47
|
|--------|---------|-------------|
|
|
48
|
-
| `points` |
|
|
49
|
-
| `duration` |
|
|
48
|
+
| `points` | **Required** | Max points consumable over `duration`. Must be a number. |
|
|
49
|
+
| `duration` | **Required** | Seconds before points reset (from first consume). Must be >= 0. `0` = never expire. |
|
|
50
50
|
| `keyPrefix` | `'rlflx'` | Unique prefix per limiter to avoid key collisions. For some stores, used as table/collection name. |
|
|
51
51
|
| `blockDuration` | `0` | If >0, block key for this many seconds once points exhausted. |
|
|
52
52
|
| `storeClient` | — | Required for store limiters. Accepts `@valkey/valkey-glide`, `iovalkey`, `redis`, `ioredis`, `memcached`, `mongodb`, `pg`, `mysql2`, `mysql`, Sequelize, TypeORM, Knex, or any related pool/connection. |
|
package/package.json
CHANGED