| 15 | { |
| 16 | |
| 17 | memcache::memcache(const char* addr /* = "127.0.0.1:11211" */, |
| 18 | int conn_timeout /* = 30 */, int rw_timeout /* = 30 */) |
| 19 | : keypre_(NULL) |
| 20 | , coder_(false, false) |
| 21 | , encode_key_(false) |
| 22 | , opened_(false) |
| 23 | , retry_(true) |
| 24 | , content_length_(0) |
| 25 | , length_(0) |
| 26 | , conn_(NULL) |
| 27 | { |
| 28 | acl_assert(addr && *addr); |
| 29 | addr_ = acl_mystrdup(addr); |
| 30 | set_timeout(conn_timeout, rw_timeout); |
| 31 | } |
| 32 | |
| 33 | memcache::~memcache(void) |
| 34 | { |
nothing calls this directly
no test coverage detected