django1/django/core/cache/backends
Nick Pope bb64b99b78 Fixed #29867 -- Added support for storing None value in caches.
Many of the cache operations make use of the default argument to the
.get() operation to determine whether the key was found in the cache.
The default value of the default argument is None, so this results in
these operations assuming that None is not stored in the cache when it
actually is. Adding a sentinel object solves this issue.

Unfortunately the unmaintained python-memcached library does not support
a default argument to .get(), so the previous behavior is preserved for
the deprecated MemcachedCache backend.
2020-12-17 09:57:21 +01:00
..
__init__.py
base.py Fixed #29867 -- Added support for storing None value in caches. 2020-12-17 09:57:21 +01:00
db.py Fixed #31728 -- Fixed cache culling when no key is found for deletion. 2020-06-22 06:29:35 +02:00
dummy.py Fixed #30759 -- Made cache.delete() return whether it succeeded. 2019-11-14 11:14:11 +01:00
filebased.py Fixed CVE-2020-24584 -- Fixed permission escalation in intermediate-level directories of the file system cache on Python 3.7+. 2020-09-01 09:17:23 +02:00
locmem.py Fixed #31907 -- Fixed missing validate_key() calls in cache backends. 2020-08-24 09:41:21 +02:00
memcached.py Fixed #29867 -- Added support for storing None value in caches. 2020-12-17 09:57:21 +01:00