1234567891011121314151617 |
- # -*- coding: utf-8 -*-
- # !/usr/bin/env python
- from library.pymemcache.client.hash import HashClient
- class Client(HashClient):
- def disconnect_all(self):
- if not self.use_pooling:
- for client in self.clients.values():
- client.quit()
- def _get_client(self, key, ignore_exc = True):
- client = HashClient._get_client(self, key, ignore_exc = ignore_exc)
- client.default_noreply = False
- return client
|