« blib/lib/Memcached/libmemcached/memcached_dump.pm
↑ Summary
blib/lib/Memcached/libmemcached/memcached_flush_buffers.pm »
| 1 | package Memcached::libmemcached::memcached_flush; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | memcached_flush - wipe contents of memcached servers | ||
| 6 | |||
| 7 | =head1 LIBRARY | ||
| 8 | |||
| 9 | C Client Library for memcached (libmemcached, -lmemcached) | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | #include <memcached.h> | ||
| 14 | |||
| 15 | memcached_return_t | ||
| 16 | memcached_flush (memcached_st *ptr, | ||
| 17 | time_t expiration); | ||
| 18 | |||
| 19 | =head1 DESCRIPTION | ||
| 20 | |||
| 21 | memcached_flush() is used to wipe clean the contents of memcached(1) servers. | ||
| 22 | It will either do this immediately or expire the content based on the | ||
| 23 | expiration time passed to the method (a value of zero causes an immediate | ||
| 24 | flush). The operation is not atomic to multiple servers, just atomic to a | ||
| 25 | single server. That is, it will flush the servers in the order that they were | ||
| 26 | added. | ||
| 27 | |||
| 28 | =head1 RETURN | ||
| 29 | |||
| 30 | A value of type C<memcached_return_t> is returned | ||
| 31 | On success that value will be C<MEMCACHED_SUCCESS>. | ||
| 32 | Use memcached_strerror() to translate this value to a printable string. | ||
| 33 | |||
| 34 | =head1 HOME | ||
| 35 | |||
| 36 | To find out more information please check: | ||
| 37 | L<https://launchpad.net/libmemcached> | ||
| 38 | |||
| 39 | =head1 AUTHOR | ||
| 40 | |||
| 41 | Brian Aker, E<lt>brian@tangent.orgE<gt> | ||
| 42 | |||
| 43 | =head1 SEE ALSO | ||
| 44 | |||
| 45 | memcached(1) libmemcached(3) memcached_strerror(3) | ||
| 46 | |||
| 47 | =cut | ||
| 48 | |||
| 49 | 1 | 1; |