1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #27318 -- Made cache.set_many() return the list of failed keys.

This commit is contained in:
Olivier Tabone
2016-11-06 12:57:38 +01:00
committed by Tim Graham
parent 407c1249c9
commit a027447f56
6 changed files with 36 additions and 6 deletions

View File

@@ -157,7 +157,8 @@ Minor features
Cache
~~~~~
* ...
* On memcached, ``cache.set_many()`` returns a list of keys that failed to be
inserted.
CSRF
~~~~

View File

@@ -881,6 +881,13 @@ of key-value pairs::
Like ``cache.set()``, ``set_many()`` takes an optional ``timeout`` parameter.
On supported backends (memcached), ``set_many()`` returns a list of keys that
failed to be inserted.
.. versionchanged:: 2.0
The return value containing list of failing keys was added.
You can delete keys explicitly with ``delete()``. This is an easy way of
clearing the cache for a particular object::