Ticket #17943: memcached-close-sockets-patch.diff
File memcached-close-sockets-patch.diff, 475 bytes (added by , 13 years ago) |
---|
-
django/core/cache/backends/memcached.py
old new 23 23 self._lib = library 24 24 self._options = params.get('OPTIONS', None) 25 25 26 def __del__(self): 27 if getattr(self, '_client', None) is not None: 28 self._client.disconnect_all() 29 26 30 @property 27 31 def _cache(self): 28 32 """