diff --git a/limits/aio/storage/redis.py b/limits/aio/storage/redis.py index 677c332..9da8595 100644 --- a/limits/aio/storage/redis.py +++ b/limits/aio/storage/redis.py @@ -277,8 +277,8 @@ async def check(self) -> bool: async def reset(self) -> Optional[int]: """ - This function calls a Lua Script to delete keys prefixed with `self.PREFIX` - in block of 5000. + This function calls a Lua Script to delete keys prefixed with + ``self.PREFIX`` in blocks of 5000. .. warning:: This operation was designed to be fast, but was not tested on a large production based system. Be careful with its usage as it @@ -352,7 +352,7 @@ async def reset(self) -> Optional[int]: """ Redis Clusters are sharded and deleting across shards can't be done atomically. Because of this, this reset loops over all - keys that are prefixed with `self.PREFIX` and calls delete on them, + keys that are prefixed with ``self.PREFIX`` and calls delete on them, one at a time. .. warning:: This operation was not tested with extremely large data sets. diff --git a/limits/storage/redis.py b/limits/storage/redis.py index b6a9afa..1d7ab72 100644 --- a/limits/storage/redis.py +++ b/limits/storage/redis.py @@ -248,8 +248,8 @@ def check(self) -> bool: def reset(self) -> Optional[int]: """ - This function calls a Lua Script to delete keys prefixed with `self.PREFIX` - in block of 5000. + This function calls a Lua Script to delete keys prefixed with + ``self.PREFIX`` in blocks of 5000. .. warning:: This operation was designed to be fast, but was not tested diff --git a/limits/storage/redis_cluster.py b/limits/storage/redis_cluster.py index f4f1cb5..a94f7bf 100644 --- a/limits/storage/redis_cluster.py +++ b/limits/storage/redis_cluster.py @@ -116,7 +116,7 @@ def reset(self) -> Optional[int]: """ Redis Clusters are sharded and deleting across shards can't be done atomically. Because of this, this reset loops over all - keys that are prefixed with `self.PREFIX` and calls delete on them, + keys that are prefixed with ``self.PREFIX`` and calls delete on them, one at a time. .. warning::