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