diff options
| author | Olivier Tabone <olivier.tabone@ripplemotion.fr> | 2016-11-06 12:57:38 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-06 14:38:44 -0400 |
| commit | a027447f5606d60358e5da76c0e8233732ad2b17 (patch) | |
| tree | 6e06934fc26d48fc59ccb5f45c3800368e625aad /docs | |
| parent | 407c1249c9a0296ec8a8d95e447bd695ca471b5e (diff) | |
Fixed #27318 -- Made cache.set_many() return the list of failed keys.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/2.0.txt | 3 | ||||
| -rw-r--r-- | docs/topics/cache.txt | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt index e50bd36d93..c8ec169e3c 100644 --- a/docs/releases/2.0.txt +++ b/docs/releases/2.0.txt @@ -157,7 +157,8 @@ Minor features Cache ~~~~~ -* ... +* On memcached, ``cache.set_many()`` returns a list of keys that failed to be + inserted. CSRF ~~~~ diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 7d32f1f94f..22230d6684 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -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:: |
