3 memcached_analyze - Analyze server information
7 C Client Library for memcached (libmemcached, -lmemcached)
11 #include <memcached.h>
13 memcached_analysis_st *
14 memcached_analyze (memcached_st *ptr,
15 memcached_stat_st *stat,
16 memcached_return_t *error);
20 libmemcached(3) has the ability to query a memcached server (or collection
21 of servers) for their current state. Queries to find state return a
22 C<memcached_analysis_st> structure. You are responsible for freeing this structure.
24 memcached_analyze() analyzes useful information based on the provided servers
25 and sets the result to the C<memcached_analysis_st> structure. The return value
26 must be freed by the calling application.
28 A command line tool, memstat(1) with the option --analyze, is provided so that
29 you do not have to write an application to use this method.
33 A pointer to the allocated C<memcached_analysis_st> structure on success and
34 a NULL pointer on failure. You may inspect the error detail by checking the
35 C<memcached_return_t> value.
37 Any method returning a C<memcached_analysis_st> expects you to free the
38 memory allocated for it.
42 To find out more information please check:
43 L<https://launchpad.net/libmemcached>
47 Toru Maesaka, E<lt>dev@torum.netE<gt>
51 memcached(1) libmemcached(3) memcached_strerror(3)