Skip to content

Commit

Permalink
Removed Redis parser_class reference from docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
r3a70 authored and sarahboyce committed May 7, 2024
1 parent 4d2ef9b commit ccff7f4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/topics/cache.txt
Expand Up @@ -562,24 +562,20 @@ flag on the connection's socket::
}

Here's an example configuration for a ``redis`` based backend that selects
database ``10`` (by default Redis ships with 16 logical databases), specifies a
`parser class`_ (``redis.connection.HiredisParser`` will be used by default if
the ``hiredis-py`` package is installed), and sets a custom `connection pool
class`_ (``redis.ConnectionPool`` is used by default)::
database ``10`` (by default Redis ships with 16 logical databases), and sets a
custom `connection pool class`_ (``redis.ConnectionPool`` is used by default)::

CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": "redis://127.0.0.1:6379",
"OPTIONS": {
"db": "10",
"parser_class": "redis.connection.PythonParser",
"pool_class": "redis.BlockingConnectionPool",
},
}
}

.. _`parser class`: https://github.com/redis/redis-py#parsers
.. _`connection pool class`: https://github.com/redis/redis-py#connection-pools

.. _the-per-site-cache:
Expand Down

0 comments on commit ccff7f4

Please sign in to comment.