class RateLimit::Config
To set bucket parameters easily, you can create named configurations to create buckets using those templates.
The configurations have the following parameters:
name
-
the name of the configuration
start
-
the credits that a new bucket starts with
max
-
the maximum that the bucket will be filled by the regeneration process
min
-
the minimum that a bucket can go, must be <= 0.
refill_amount
-
the amount that will be added to the bucket every refill_epoch seconds.
refill_epoch
-
the number of seconds before the bucket is credited by the regeneration process