mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #33012 -- Added Redis cache backend.
Thanks Carlton Gibson, Chris Jerdonek, David Smith, Keryn Knight, Mariusz Felisiak, and Nick Pope for reviews and mentoring this Google Summer of Code 2021 project.
This commit is contained in:
parent
676bd084f2
commit
ec212c6616
8 changed files with 398 additions and 10 deletions
|
@ -153,6 +153,7 @@ The cache backend to use. The built-in cache backends are:
|
|||
* ``'django.core.cache.backends.locmem.LocMemCache'``
|
||||
* ``'django.core.cache.backends.memcached.PyMemcacheCache'``
|
||||
* ``'django.core.cache.backends.memcached.PyLibMCCache'``
|
||||
* ``'django.core.cache.backends.redis.RedisCache'``
|
||||
|
||||
You can use a cache backend that doesn't ship with Django by setting
|
||||
:setting:`BACKEND <CACHES-BACKEND>` to a fully-qualified path of a cache
|
||||
|
@ -162,6 +163,10 @@ backend class (i.e. ``mypackage.backends.whatever.WhateverCache``).
|
|||
|
||||
The ``PyMemcacheCache`` backend was added.
|
||||
|
||||
.. versionchanged:: 4.0
|
||||
|
||||
The ``RedisCache`` backend was added.
|
||||
|
||||
.. setting:: CACHES-KEY_FUNCTION
|
||||
|
||||
``KEY_FUNCTION``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue