memcached_return_t memcached_flush(memcached_st *ptr, time_t expiration) { memcached_return_t rc; LIBMEMCACHED_MEMCACHED_FLUSH_START(); if (ptr->flags.binary_protocol) rc= memcached_flush_binary(ptr, expiration); else rc= memcached_flush_textual(ptr, expiration); LIBMEMCACHED_MEMCACHED_FLUSH_END(); return rc; }
memcached_return_t memcached_flush(memcached_st *ptr, time_t expiration) { memcached_return_t rc; if ((rc= initialize_query(ptr)) != MEMCACHED_SUCCESS) { return rc; } LIBMEMCACHED_MEMCACHED_FLUSH_START(); if (ptr->flags.binary_protocol) rc= memcached_flush_binary(ptr, expiration); else rc= memcached_flush_textual(ptr, expiration); LIBMEMCACHED_MEMCACHED_FLUSH_END(); return rc; }