X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_stats.pod;h=3b198d99633e6ec0f02372062f409ffae5d98fd2;hb=b175c6025c67cb8fa756750d53fb96fd888076de;hp=cd486046ba36c3ee95d9fc8c67cc36988121862e;hpb=24342b1919b6aaa26c33aae50974b449f95a737a;p=m6w6%2Flibmemcached diff --git a/docs/memcached_stats.pod b/docs/memcached_stats.pod index cd486046..3b198d99 100644 --- a/docs/memcached_stats.pod +++ b/docs/memcached_stats.pod @@ -1,6 +1,6 @@ =head1 NAME -memcached_stat memcached_stat_servername memcached_stat_get_value memcached_stat_get_keys +memcached_stat, memcached_stat_servername, memcached_stat_get_value, memcached_stat_get_keys - Get memcached statistics =head1 LIBRARY @@ -12,21 +12,29 @@ C Client Library for memcached (libmemcached, -lmemcached) memcached_stat_st *memcached_stat (memcached_st *ptr, char *args, - memcached_return *error); - - memcached_return memcached_stat_servername (memcached_stat_st *stat, - char *args, - char *hostname, - unsigned int port); - - char *memcached_stat_get_value (memcached_st *ptr, - memcached_stat_st *stat, - char *key, - memcached_return *error); - - char ** memcached_stat_get_keys (memcached_st *ptr, - memcached_stat_st *stat, - memcached_return *error); + memcached_return_t *error); + + memcached_return_t memcached_stat_servername (memcached_stat_st *stat, + char *args, + const char *hostname, + unsigned int port); + + char * + memcached_stat_get_value (memcached_st *ptr, + memcached_stat_st *stat, + const char *key, + memcached_return_t *error); + + char ** + memcached_stat_get_keys (memcached_st *ptr, + memcached_stat_st *stat, + memcached_return_t *error); + + memcached_return_t + memcached_stat_execute (memcached_st *memc, + const char *args, + memcached_stat_fn func, + void *context); =head1 DESCRIPTION @@ -36,6 +44,12 @@ C structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. and +executes a "stat" command on each server. args is an optional argument that +can be passed in to modify the behavior of "stats". You will need to supply +a callback function that will be supplied each pair of values returned by +the memcached server. + memcached_stat() fetches an array of C structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the C @@ -68,7 +82,7 @@ memory allocated for it. =head1 HOME To find out more information please check: -L +L =head1 AUTHOR