| 11 | { |
| 12 | |
| 13 | memcache_session::memcache_session(const char* cache_addr, |
| 14 | int conn_timeout /* = 180 */, int rw_timeout /* = 300 */, |
| 15 | const char* prefix /* = NULL */, time_t ttl /* = 0 */, |
| 16 | const char* sid /* = NULL */, bool encode_key /* = true */) |
| 17 | : session(ttl, sid) |
| 18 | , auto_free_(true) |
| 19 | { |
| 20 | acl_assert(cache_addr && *cache_addr); |
| 21 | cache_ = NEW memcache(cache_addr); |
| 22 | cache_->set_timeout(conn_timeout, rw_timeout); |
| 23 | (*cache_).set_prefix(prefix && *prefix ? prefix : "_") |
| 24 | .encode_key(encode_key) |
| 25 | .auto_retry(true); |
| 26 | } |
| 27 | |
| 28 | memcache_session::memcache_session(memcache* cache, bool auto_free /* = false */, |
| 29 | time_t ttl /* = 0 */, const char* sid /* = NULL */) |
nothing calls this directly
no test coverage detected