From 1f86e0d614005f5d81da45d813aa425a62500a86 Mon Sep 17 00:00:00 2001 From: Ermolaev Andrey Date: Tue, 9 Jan 2024 22:05:42 +0300 Subject: [PATCH 1/2] Redundant limiter.poke in README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 66fcbf7..a52cd55 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,6 @@ limiter = Kredis.limiter "mylimit", limit: 3, expires_in: 5.seconds 0 == limiter.value # => GET "limiter" limiter.poke # => SET limiter 0 NX + INCRBY limiter 1 limiter.poke # => SET limiter 0 NX + INCRBY limiter 1 -limiter.poke # => SET limiter 0 NX + INCRBY limiter 1 false == limiter.exceeded? # => GET "limiter" limiter.poke # => SET limiter 0 NX + INCRBY limiter 1 true == limiter.exceeded? # => GET "limiter" From e3118e7ed0e9a275fe0357a0b920e33a27b73172 Mon Sep 17 00:00:00 2001 From: Ermolaev Andrey Date: Wed, 10 Jan 2024 01:40:01 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index a52cd55..0eac65b 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,6 @@ true == limiter.exceeded? # => GET "limiter" sleep 6 limiter.poke # => SET limiter 0 NX + INCRBY limiter 1 limiter.poke # => SET limiter 0 NX + INCRBY limiter 1 -limiter.poke # => SET limiter 0 NX + INCRBY limiter 1 false == limiter.exceeded? # => GET "limiter" ```