mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Merge pull request #218 from mgrouchy/ticket_18582
Fixed #18582 -- Added a no-op close to BaseCache
This commit is contained in:
commit
4c5cea7073
5 changed files with 27 additions and 5 deletions
|
@ -785,6 +785,16 @@ nonexistent cache key.::
|
|||
However, if the backend doesn't natively provide an increment/decrement
|
||||
operation, it will be implemented using a two-step retrieve/update.
|
||||
|
||||
|
||||
You can close the connection to your cache with ``close()`` if implemented by
|
||||
the cache backend.
|
||||
|
||||
>>> cache.close()
|
||||
|
||||
.. note::
|
||||
|
||||
For caches that don't implement ``close`` methods it is a no-op.
|
||||
|
||||
.. _cache_key_prefixing:
|
||||
|
||||
Cache key prefixing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue