summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-26 11:46:48 -0500
committerTim Graham <timograham@gmail.com>2015-01-17 09:55:18 -0500
commitd038c547b5ce585cbf9ef5bb7e5298f52e4a243b (patch)
treef662bb3059ce87c8d3401838e7bf5702bd1ece17 /docs
parentaff0e54d511f55dbcdbae6a79c237fbb3edc9973 (diff)
Removed django.core.cache.get_cache() per deprecation timeline; refs #21012.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.7.txt4
-rw-r--r--docs/topics/cache.txt15
2 files changed, 2 insertions, 17 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index bca0aa35a9..70101ec946 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -544,7 +544,7 @@ Cache
* Access to caches configured in :setting:`CACHES` is now available via
:data:`django.core.cache.caches`. This dict-like object provides a different
- instance per thread. It supersedes :func:`django.core.cache.get_cache` which
+ instance per thread. It supersedes ``django.core.cache.get_cache()`` which
is now deprecated.
* If you instantiate cache backends directly, be aware that they aren't
@@ -1468,7 +1468,7 @@ Features deprecated in 1.7
``django.core.cache.get_cache``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-:func:`django.core.cache.get_cache` has been supplanted by
+``django.core.cache.get_cache`` has been supplanted by
:data:`django.core.cache.caches`.
``django.utils.dictconfig``/``django.utils.importlib``
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
index d62b9519ee..f638149b95 100644
--- a/docs/topics/cache.txt
+++ b/docs/topics/cache.txt
@@ -747,21 +747,6 @@ Accessing the cache
This object is equivalent to ``caches['default']``.
-.. function:: django.core.cache.get_cache(backend, **kwargs)
-
- .. deprecated:: 1.7
- This function has been deprecated in favor of
- :data:`~django.core.cache.caches`.
-
- Before Django 1.7 this function was the canonical way to obtain a cache
- instance. It could also be used to create a new cache instance with a
- different configuration.
-
- >>> from django.core.cache import get_cache
- >>> get_cache('default')
- >>> get_cache('django.core.cache.backends.memcached.MemcachedCache', LOCATION='127.0.0.2')
- >>> get_cache('default', TIMEOUT=300)
-
Basic usage
-----------