Fixed #29887 -- Added a cache backend for pymemcache.

This commit is contained in:
Nick Pope 2019-01-18 23:26:50 +00:00 committed by Mariusz Felisiak
parent cda0a3d777
commit b4d46df5ca
6 changed files with 89 additions and 4 deletions

View file

@ -158,11 +158,16 @@ The cache backend to use. The built-in cache backends are:
* ``'django.core.cache.backends.locmem.LocMemCache'``
* ``'django.core.cache.backends.memcached.MemcachedCache'``
* ``'django.core.cache.backends.memcached.PyLibMCCache'``
* ``'django.core.cache.backends.memcached.PyMemcacheCache'``
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
backend class (i.e. ``mypackage.backends.whatever.WhateverCache``).
.. versionchanged:: 3.2
The ``PyMemcacheCache`` backend was added.
.. setting:: CACHES-KEY_FUNCTION
``KEY_FUNCTION``