mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Removed Redis parser_class reference from docs.
This commit is contained in:
parent
e37f421da8
commit
0e445badd5
@ -562,10 +562,8 @@ flag on the connection's socket::
|
|||||||
}
|
}
|
||||||
|
|
||||||
Here's an example configuration for a ``redis`` based backend that selects
|
Here's an example configuration for a ``redis`` based backend that selects
|
||||||
database ``10`` (by default Redis ships with 16 logical databases), specifies a
|
database ``10`` (by default Redis ships with 16 logical databases), and sets a
|
||||||
`parser class`_ (``redis.connection.HiredisParser`` will be used by default if
|
custom `connection pool class`_ (``redis.ConnectionPool`` is used by default)::
|
||||||
the ``hiredis-py`` package is installed), and sets a custom `connection pool
|
|
||||||
class`_ (``redis.ConnectionPool`` is used by default)::
|
|
||||||
|
|
||||||
CACHES = {
|
CACHES = {
|
||||||
"default": {
|
"default": {
|
||||||
@ -573,13 +571,11 @@ class`_ (``redis.ConnectionPool`` is used by default)::
|
|||||||
"LOCATION": "redis://127.0.0.1:6379",
|
"LOCATION": "redis://127.0.0.1:6379",
|
||||||
"OPTIONS": {
|
"OPTIONS": {
|
||||||
"db": "10",
|
"db": "10",
|
||||||
"parser_class": "redis.connection.PythonParser",
|
|
||||||
"pool_class": "redis.BlockingConnectionPool",
|
"pool_class": "redis.BlockingConnectionPool",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.. _`parser class`: https://github.com/redis/redis-py#parsers
|
|
||||||
.. _`connection pool class`: https://github.com/redis/redis-py#connection-pools
|
.. _`connection pool class`: https://github.com/redis/redis-py#connection-pools
|
||||||
|
|
||||||
.. _the-per-site-cache:
|
.. _the-per-site-cache:
|
||||||
|
Loading…
Reference in New Issue
Block a user