1 Wiping clean the contents of a server
2 =====================================
4 .. index:: object: memcached_st
6 Wipe contents of memcached servers
11 #include <libmemcached/memcached.h>
13 .. function:: memcached_return_t memcached_flush (memcached_st *ptr, time_t expiration)
15 Compile and link with -lmemcached
20 :func::`memcached_flush` is used to wipe clean the contents of :program:`memcached` servers.
21 It will either do this immediately or expire the content based on the
22 expiration time passed to the method (a value of zero causes an immediate
23 flush). The operation is not atomic to multiple servers, just atomic to a
24 single server. That is, it will flush the servers in the order that they were
30 A value of type :type:`memcached_return_t` is returned
31 On success that value will be `MEMCACHED_SUCCESS`.
32 Use :type:`memcached_strerror` to translate this value to a printable string.
39 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`