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:
committed by
Tim Graham
parent
407c1249c9
commit
a027447f56
@@ -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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user