Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/develop/use-cases/rate-limiter/dotnet/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ The `Allow` method executes the Lua script synchronously via StackExchange.Redis
* **refillInterval**: Time in seconds between refills

For example:
* `capacity=10, refillRate=1, refillInterval=1.0` allows 10 requests per second with bursts up to 10
* `capacity=10, refillRate=1, refillInterval=1.0` allows 1 request per second with bursts up to 10
* `capacity=100, refillRate=10, refillInterval=1.0` allows 10 requests per second with bursts up to 100
* `capacity=60, refillRate=1, refillInterval=60.0` allows 1 request per minute with bursts up to 60

Expand Down
2 changes: 1 addition & 1 deletion content/develop/use-cases/rate-limiter/go/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Go's `context.Context` is passed to every call, allowing you to set deadlines an
* **RefillInterval**: Time in seconds between refills

For example:
* `Capacity: 10, RefillRate: 1, RefillInterval: 1.0` allows 10 requests per second with bursts up to 10
* `Capacity: 10, RefillRate: 1, RefillInterval: 1.0` allows 1 request per second with bursts up to 10
* `Capacity: 100, RefillRate: 10, RefillInterval: 1.0` allows 10 requests per second with bursts up to 100
* `Capacity: 60, RefillRate: 1, RefillInterval: 60.0` allows 1 request per minute with bursts up to 60

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Jedis operations are synchronous and thread-safe when using `JedisPool`, which m
* **refillInterval**: Time in seconds between refills

For example:
* `capacity=10, refillRate=1, refillInterval=1.0` allows 10 requests per second with bursts up to 10
* `capacity=10, refillRate=1, refillInterval=1.0` allows 1 request per second with bursts up to 10
* `capacity=100, refillRate=10, refillInterval=1.0` allows 10 requests per second with bursts up to 100
* `capacity=60, refillRate=1, refillInterval=60.0` allows 1 request per minute with bursts up to 60

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Note that Lettuce takes a `StatefulRedisConnection` directly rather than a conne
* **refillInterval**: Time in seconds between refills

For example:
* `capacity=10, refillRate=1, refillInterval=1.0` allows 10 requests per second with bursts up to 10
* `capacity=10, refillRate=1, refillInterval=1.0` allows 1 request per second with bursts up to 10
* `capacity=100, refillRate=10, refillInterval=1.0` allows 10 requests per second with bursts up to 100
* `capacity=60, refillRate=1, refillInterval=60.0` allows 1 request per minute with bursts up to 60

Expand Down
2 changes: 1 addition & 1 deletion content/develop/use-cases/rate-limiter/nodejs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Because `node-redis` operations are asynchronous, the `allow()` method returns a
* **refillInterval**: Time in seconds between refills

For example:
* `capacity: 10, refillRate: 1, refillInterval: 1.0` allows 10 requests per second with bursts up to 10
* `capacity: 10, refillRate: 1, refillInterval: 1.0` allows 1 request per second with bursts up to 10
* `capacity: 100, refillRate: 10, refillInterval: 1.0` allows 10 requests per second with bursts up to 100
* `capacity: 60, refillRate: 1, refillInterval: 60.0` allows 1 request per minute with bursts up to 60

Expand Down
2 changes: 1 addition & 1 deletion content/develop/use-cases/rate-limiter/php/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ The `allow()` method returns an associative array with two keys: `allowed` (bool
* **refillInterval**: Time in seconds between refills

For example:
* `capacity: 10, refillRate: 1, refillInterval: 1.0` allows 10 requests per second with bursts up to 10
* `capacity: 10, refillRate: 1, refillInterval: 1.0` allows 1 request per second with bursts up to 10
* `capacity: 100, refillRate: 10, refillInterval: 1.0` allows 10 requests per second with bursts up to 100
* `capacity: 60, refillRate: 1, refillInterval: 60.0` allows 1 request per minute with bursts up to 60

Expand Down
4 changes: 2 additions & 2 deletions content/develop/use-cases/rate-limiter/redis-py/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ from token_bucket import TokenBucket
# Create a Redis connection
r = redis.Redis(host='localhost', port=6379, decode_responses=True)

# Create a rate limiter: 10 requests per second
# Create a rate limiter: 1 request per second
limiter = TokenBucket(
redis_client=r,
capacity=10, # Maximum burst size
Expand All @@ -163,7 +163,7 @@ else:
* **refill_interval**: Time in seconds between refills

For example:
* `capacity=10, refill_rate=1, refill_interval=1.0` allows 10 requests per second with bursts up to 10
* `capacity=10, refill_rate=1, refill_interval=1.0` allows 1 request per second with bursts up to 10
* `capacity=100, refill_rate=10, refill_interval=1.0` allows 10 requests per second with bursts up to 100
* `capacity=60, refill_rate=1, refill_interval=60.0` allows 1 request per minute with bursts up to 60

Expand Down
2 changes: 1 addition & 1 deletion content/develop/use-cases/rate-limiter/ruby/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Ruby's keyword arguments make the constructor parameters self-documenting, and t
* **refill_interval**: Time in seconds between refills

For example:
* `capacity: 10, refill_rate: 1, refill_interval: 1.0` allows 10 requests per second with bursts up to 10
* `capacity: 10, refill_rate: 1, refill_interval: 1.0` allows 1 request per second with bursts up to 10
* `capacity: 100, refill_rate: 10, refill_interval: 1.0` allows 10 requests per second with bursts up to 100
* `capacity: 60, refill_rate: 1, refill_interval: 60.0` allows 1 request per minute with bursts up to 60

Expand Down
2 changes: 1 addition & 1 deletion content/develop/use-cases/rate-limiter/rust/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Rust's `Result` type provides compile-time error handling, ensuring all Redis er
* **refill_interval**: Time in seconds between refills (as `f64`)

For example:
* `capacity: 10, refill_rate: 1.0, refill_interval: 1.0` allows 10 requests per second with bursts up to 10
* `capacity: 10, refill_rate: 1.0, refill_interval: 1.0` allows 1 request per second with bursts up to 10
* `capacity: 100, refill_rate: 10.0, refill_interval: 1.0` allows 10 requests per second with bursts up to 100
* `capacity: 60, refill_rate: 1.0, refill_interval: 60.0` allows 1 request per minute with bursts up to 60

Expand Down
Loading