1 =====================================
2 Wiping clean the contents of a server
3 =====================================
5 .. index:: object: memcached_st
7 Wipe contents of memcached servers
15 #include <libmemcached/memcached.h>
17 .. c:function:: memcached_return_t memcached_flush (memcached_st *ptr, time_t expiration)
19 Compile and link with -lmemcached
27 :c:func::`memcached_flush` is used to wipe clean the contents of :program:`memcached` servers.
28 It will either do this immediately or expire the content based on the
29 expiration time passed to the method (a value of zero causes an immediate
30 flush). The operation is not atomic to multiple servers, just atomic to a
31 single server. That is, it will flush the servers in the order that they were
40 A value of type :c:type:`memcached_return_t` is returned
41 On success that value will be :c:type:`MEMCACHED_SUCCESS`.
42 Use :c:type:`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)`