#include <libmemcached/common.h>
-static memcached_return_t memcached_flush_binary(memcached_st *ptr,
+static memcached_return_t memcached_flush_binary(Memcached *ptr,
time_t expiration,
const bool reply)
{
{
org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, x);
- if (memcached_instance_response_count(instance) > 0)
+ if (instance->response_count() > 0)
{
(void)memcached_response(instance, NULL, 0, NULL);
}
return rc;
}
-static memcached_return_t memcached_flush_textual(memcached_st *ptr,
+static memcached_return_t memcached_flush_textual(Memcached *ptr,
time_t expiration,
const bool reply)
{
return rc;
}
-memcached_return_t memcached_flush(memcached_st *ptr, time_t expiration)
+memcached_return_t memcached_flush(memcached_st *shell, time_t expiration)
{
+ Memcached* ptr= memcached2Memcached(shell);
memcached_return_t rc;
if (memcached_failed(rc= initialize_query(ptr, true)))
{