Skip to content

Consume, penalty and reward with customDuration options

Compare
Choose a tag to compare
@animir animir released this 04 Apr 06:02
· 383 commits to master since this release

Features:

  • use consume(key, points, {customDuration: 1}) to dynamically change a duration of a current call for a key fixed by global duration

Bug fixes:

  • postgres limiter: create table (thank you @jdgriffith )
  • memory limiter: block method duration
  • memcache limiter: fix possible race condition