Merge pull request #218 from mgrouchy/ticket_18582

Fixed #18582 -- Added a no-op close to BaseCache
This commit is contained in:
Aymeric Augustin 2012-11-11 07:18:45 -08:00
commit 4c5cea7073
5 changed files with 27 additions and 5 deletions

View file

@ -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