8000 Tags · taohui/redis_rate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: taohui/redis_rate

Tags

v9.1.1

Toggle v9.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
enable allowN and allowAtMost to peek at contents (go-redis#47)

* add failing test for allowN increment of zero

* fix lua script to allow increment by zero (effectively peek)

In past versions of redis_rate, you could peek at the current state
in the redis limiter by calling allowN but not incrementing. The
move to lua script did not preserve this (unadvertised) ability.

This adds it back, the only issue was trying to SET a redis
row with an expiry of zero if the row didn't exist. Since the
caller doesn't want to increment at all, this changes the SET
to not be called if the value is absent.

* same test and fix for allowAtMost increment by zero

* add test for peeking after a write

v9.1.0

Toggle v9.1.0's commit message
Update dependencies

v9.0.2

Toggle v9.0.2's commit message
Update dependencies

v9.0.1

Toggle v9.0.1's commit message
Less pointy

v9.0.0

Toggle v9.0.0's commit message
Less pointy

v9.0.0-beta.1

Toggle v9.0.0-beta.1's commit message
Update go-redis

v9.0.0-alpha.4

Toggle v9.0.0-alpha.4's commit message
Tweak API

v9.0.0-alpha.3

Toggle v9.0.0-alpha.3's commit message
Add RetryAfter and ResetAfter to AllowAtMostN

v9.0.0-alpha.2

Toggle v9.0.0-alpha.2's commit message
Add AllowAtMostN

v9.0.0-alpha.1

Toggle v9.0.0-alpha.1's commit message
Add AllowAtMostN

0