diff --git a/content/develop/use-cases/rate-limiter/dotnet/_index.md b/content/develop/use-cases/rate-limiter/dotnet/_index.md index 076a7a96e3..1a7204fcd9 100644 --- a/content/develop/use-cases/rate-limiter/dotnet/_index.md +++ b/content/develop/use-cases/rate-limiter/dotnet/_index.md @@ -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 diff --git a/content/develop/use-cases/rate-limiter/go/_index.md b/content/develop/use-cases/rate-limiter/go/_index.md index 56c5fbe842..b50a5688ea 100644 --- a/content/develop/use-cases/rate-limiter/go/_index.md +++ b/content/develop/use-cases/rate-limiter/go/_index.md @@ -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 diff --git a/content/develop/use-cases/rate-limiter/java-jedis/_index.md b/content/develop/use-cases/rate-limiter/java-jedis/_index.md index 7422969279..fac7fbb8ba 100644 --- a/content/develop/use-cases/rate-limiter/java-jedis/_index.md +++ b/content/develop/use-cases/rate-limiter/java-jedis/_index.md @@ -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 diff --git a/content/develop/use-cases/rate-limiter/java-lettuce/_index.md b/content/develop/use-cases/rate-limiter/java-lettuce/_index.md index 4ce0061d72..e825508854 100644 --- a/content/develop/use-cases/rate-limiter/java-lettuce/_index.md +++ b/content/develop/use-cases/rate-limiter/java-lettuce/_index.md @@ -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 diff --git a/content/develop/use-cases/rate-limiter/nodejs/_index.md b/content/develop/use-cases/rate-limiter/nodejs/_index.md index 2ce31da67a..48f70e29f1 100644 --- a/content/develop/use-cases/rate-limiter/nodejs/_index.md +++ b/content/develop/use-cases/rate-limiter/nodejs/_index.md @@ -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 diff --git a/content/develop/use-cases/rate-limiter/php/_index.md b/content/develop/use-cases/rate-limiter/php/_index.md index a046c1aadc..f21517e042 100644 --- a/content/develop/use-cases/rate-limiter/php/_index.md +++ b/content/develop/use-cases/rate-limiter/php/_index.md @@ -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 diff --git a/content/develop/use-cases/rate-limiter/redis-py/_index.md b/content/develop/use-cases/rate-limiter/redis-py/_index.md index e383ea6c0e..a042ff3142 100644 --- a/content/develop/use-cases/rate-limiter/redis-py/_index.md +++ b/content/develop/use-cases/rate-limiter/redis-py/_index.md @@ -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 @@ -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 diff --git a/content/develop/use-cases/rate-limiter/ruby/_index.md b/content/develop/use-cases/rate-limiter/ruby/_index.md index edffd1374d..02acf17882 100644 --- a/content/develop/use-cases/rate-limiter/ruby/_index.md +++ b/content/develop/use-cases/rate-limiter/ruby/_index.md @@ -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 diff --git a/content/develop/use-cases/rate-limiter/rust/_index.md b/content/develop/use-cases/rate-limiter/rust/_index.md index 7679d6ef25..58d54fa1bc 100644 --- a/content/develop/use-cases/rate-limiter/rust/_index.md +++ b/content/develop/use-cases/rate-limiter/rust/_index.md @@ -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