Ticket #17943: memcached-close-sockets-patch.diff

File memcached-close-sockets-patch.diff, 475 bytes (added by m.gajda@…, 13 years ago)
  • django/core/cache/backends/memcached.py

    old new  
    2323        self._lib = library
    2424        self._options = params.get('OPTIONS', None)
    2525
     26    def __del__(self):
     27        if getattr(self, '_client', None) is not None:
     28            self._client.disconnect_all()
     29
    2630    @property
    2731    def _cache(self):
    2832        """
Back to Top