« blib/lib/Memcached/libmemcached/memcached_delete.pm
↑ Summary
blib/lib/Memcached/libmemcached/memcached_flush.pm »
| 1 | package Memcached::libmemcached::memcached_dump; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | memcached_dump - get a list of keys found on 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_dump (memcached_st *ptr, | ||
| 17 | memcached_dump_fn *function, | ||
| 18 | void *context, | ||
| 19 | uint32_t number_of_callbacks); | ||
| 20 | |||
| 21 | typedef memcached_return_t (*memcached_dump_fn)(memcached_st *ptr, | ||
| 22 | const char *key, | ||
| 23 | size_t key_length, | ||
| 24 | void *context); | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | memcached_dump() is used to get a list of keys found memcached(1) servers. | ||
| 29 | Because memcached(1) does not guarentee to dump all keys you can not assume | ||
| 30 | you have fetched all keys from the server. The function takes an array | ||
| 31 | of callbacks that it will use to execute on keys as they are found. | ||
| 32 | |||
| 33 | Currently the binar protocol is not supported. | ||
| 34 | |||
| 35 | =head1 RETURN | ||
| 36 | |||
| 37 | A value of type C<memcached_return_t> is returned | ||
| 38 | On success that value will be C<MEMCACHED_SUCCESS>. | ||
| 39 | Use memcached_strerror() to translate this value to a printable string. | ||
| 40 | |||
| 41 | =head1 HOME | ||
| 42 | |||
| 43 | To find out more information please check: | ||
| 44 | L<https://launchpad.net/libmemcached> | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Brian Aker, E<lt>brian@tangent.orgE<gt> | ||
| 49 | |||
| 50 | =head1 SEE ALSO | ||
| 51 | |||
| 52 | memcached(1) libmemcached(3) memcached_strerror(3) | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | 1 | 1; |