Skip to content

Commit

Permalink
Fix docstring example for storage_from_string
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Jan 16, 2025
1 parent aa858b6 commit 24dc148
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions limits/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def storage_from_string(
from limits.storage import storage_from_string
memory = from_string("memory://")
memcached = from_string("memcached://localhost:11211")
redis = from_string("redis://localhost:6379")
memory = storage_from_string("memory://")
memcached = storage_from_string("memcached://localhost:11211")
redis = storage_from_string("redis://localhost:6379")
The same function can be used to construct the :ref:`storage:async storage`
variants, for example::
Expand Down

0 comments on commit 24dc148

Please sign in to comment.