client.py 462 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. from library.pymemcache.client.hash import HashClient
  4. class Client(HashClient):
  5. def disconnect_all(self):
  6. if not self.use_pooling:
  7. for client in self.clients.values():
  8. client.quit()
  9. def _get_client(self, key, ignore_exc = True):
  10. client = HashClient._get_client(self, key, ignore_exc = ignore_exc)
  11. client.default_noreply = False
  12. return client