The goal of this PR is to improve flexibility. With these changes, the Ratelimiter class can be used with custom hydrators, throttlers and/or cacheadapter.
Changes:
Interfaced & injected the hydrator factory
Config has been moved to the cache factory, since it is only used there. This simplifies the Ratelimiter class
Global ratelimiter limit & ttl are no longer overwritten when fetching a new throttler
The goal of this PR is to improve flexibility. With these changes, the
Ratelimiter
class can be used with custom hydrators, throttlers and/or cacheadapter.Changes:
Ratelimiter
classlimit
&ttl
are no longer overwritten when fetching a new throttler