mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Removed django.core.cache.get_cache() per deprecation timeline; refs #21012.
This commit is contained in:
parent
aff0e54d51
commit
d038c547b5
4 changed files with 6 additions and 80 deletions
|
|
@ -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
|
||||
-----------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue