summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2023-01-24 13:49:50 -0600
committerJordan Cook <jordan.cook.git@proton.me>2023-02-18 15:55:25 -0600
commit476c873a06b735602d23d9a80261b6ab6ca65ea8 (patch)
treecfdc4901cdde27b721fada311ceea1b20bb17725
parent5f444d60d1c5f9eaca76f857ec09829a652dfea2 (diff)
downloadrequests-cache-476c873a06b735602d23d9a80261b6ab6ca65ea8.tar.gz
Fix example with requests-ratelimiter
-rw-r--r--docs/user_guide/compatibility.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/user_guide/compatibility.md b/docs/user_guide/compatibility.md
index a2b3fdb..3ecb809 100644
--- a/docs/user_guide/compatibility.md
+++ b/docs/user_guide/compatibility.md
@@ -85,10 +85,11 @@ _after_ caching, you get the added benefit of not counting cache hits against yo
>>> # Limit non-cached requests to 5 requests per second, with unlimited cached requests
>>> # Optionally use Redis as both the bucket backend and the cache backend
>>> session = CachedLimiterSession(
-... rates=RequestRate(5, Duration.SECOND),
+... per_second=5,
... bucket_class=RedisBucket,
... backend=RedisCache(),
... )
+
```
## Internet Archive