Skip to content

Commit

Permalink
Fix README example for storage_from_string
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Feb 15, 2023
1 parent 2e9697e commit 280c91e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ Initialize the storage backend
memcached_storage = storage.MemcachedStorage("memcached://localhost:11211")
# or redis
redis_storage = storage.RedisStorage("redis://localhost:6379")
# or leave it to fate
some_storage = storage.storage.from_string(fate)
# or use the factory
storage_uri = "memcached://localhost:11211"
some_storage = storage.storage_from_string(storage_uri)
Initialize a rate limiter with the Moving Window Strategy

Expand Down

0 comments on commit 280c91e

Please sign in to comment.