Update redis.py (#1053)

I fixed a mistake in writing documentation in class RedisStorage

from/to:
aioredis -> redis
pip install aioredis -> pip install redis
This commit is contained in:
Alexander 2022-11-02 22:39:38 +02:00 committed by GitHub
parent 67fbee454a
commit 45705faf12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ class DefaultKeyBuilder(KeyBuilder):
class RedisStorage(BaseStorage): class RedisStorage(BaseStorage):
""" """
Redis storage required :code:`aioredis` package installed (:code:`pip install aioredis`) Redis storage required :code:`redis` package installed (:code:`pip install redis`)
""" """
def __init__( def __init__(
@ -116,7 +116,7 @@ class RedisStorage(BaseStorage):
Create an instance of :class:`RedisStorage` with specifying the connection string Create an instance of :class:`RedisStorage` with specifying the connection string
:param url: for example :code:`redis://user:password@host:port/db` :param url: for example :code:`redis://user:password@host:port/db`
:param connection_kwargs: see :code:`aioredis` docs :param connection_kwargs: see :code:`redis` docs
:param kwargs: arguments to be passed to :class:`RedisStorage` :param kwargs: arguments to be passed to :class:`RedisStorage`
:return: an instance of :class:`RedisStorage` :return: an instance of :class:`RedisStorage`
""" """