1 =====================================
2 Wiping clean the contents of a server
3 =====================================
6 Wipe contents of memcached servers
14 #include <libmemcached/memcached.h>
16 .. c:function:: memcached_return_t memcached_flush (memcached_st *ptr, time_t expiration);
18 Compile and link with -lmemcached
26 memcached_flush() is used to wipe clean the contents of memcached(1) servers.
27 It will either do this immediately or expire the content based on the
28 expiration time passed to the method (a value of zero causes an immediate
29 flush). The operation is not atomic to multiple servers, just atomic to a
30 single server. That is, it will flush the servers in the order that they were
39 A value of type \ ``memcached_return_t``\ is returned
40 On success that value will be \ ``MEMCACHED_SUCCESS``\ .
41 Use memcached_strerror() to translate this value to a printable string.
49 To find out more information please check:
50 `http://libmemcached.org/ <http://libmemcached.org/>`_
58 Brian Aker, <brian@tangent.org>
65 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`