8 Analyze server information
16 C Client Library for memcached (libmemcached, -lmemcached)
27 #include <memcached.h>
29 memcached_analysis_st *
30 memcached_analyze (memcached_st *ptr,
31 memcached_stat_st *stat,
32 memcached_return_t *error);
41 libmemcached(3) has the ability to query a memcached server (or collection
42 of servers) for their current state. Queries to find state return a
43 \ ``memcached_analysis_st``\ structure. You are responsible for freeing this structure.
45 memcached_analyze() analyzes useful information based on the provided servers
46 and sets the result to the \ ``memcached_analysis_st``\ structure. The return value
47 must be freed by the calling application.
49 A command line tool, memstat(1) with the option --analyze, is provided so that
50 you do not have to write an application to use this method.
58 A pointer to the allocated \ ``memcached_analysis_st``\ structure on success and
59 a NULL pointer on failure. You may inspect the error detail by checking the
60 \ ``memcached_return_t``\ value.
62 Any method returning a \ ``memcached_analysis_st``\ expects you to free the
63 memory allocated for it.
71 To find out more information please check:
72 `https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
80 Toru Maesaka, <dev@torum.net>
88 memcached(1) libmemcached(3) memcached_strerror(3)