diff options
| author | Mike Grouchy <mgrouchy@gmail.com> | 2012-07-18 08:00:31 -0400 |
|---|---|---|
| committer | Mike Grouchy <mgrouchy@gmail.com> | 2012-07-18 14:16:55 -0400 |
| commit | a2e927b7ed25bd319f866c55b18cd214a149d859 (patch) | |
| tree | a7b170ceae5040f804d5b0aadeebf74ee4fec923 /docs | |
| parent | 8184aff2b0a3fbe6759163c0289f640a393a3e99 (diff) | |
BaseCache now has a no-op close method as per ticket #18582
Also removed the hasattr check when firing request_finished signal for
caches with a 'close' method. Should be safe to call `cache.close`
everywhere now
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/cache.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 03afa86647..85f4c64aa8 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -779,6 +779,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 |
