From f2a59b728c20f7fe78874dd41187ab3fb2db6c7e Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 16 Feb 2014 01:06:40 -0800 Subject: Fix for building docs. --- docs/source/memcached_analyze.rst | 69 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 docs/source/memcached_analyze.rst (limited to 'docs/source/memcached_analyze.rst') diff --git a/docs/source/memcached_analyze.rst b/docs/source/memcached_analyze.rst new file mode 100644 index 00000000..88f3ad9d --- /dev/null +++ b/docs/source/memcached_analyze.rst @@ -0,0 +1,69 @@ +================= +Anaylzing servers +================= + + +Analyze server information + + +-------- +SYNOPSIS +-------- + +.. index:: object: memcached_analysis_st + + +#include + +.. c:type:: memcached_analysis_st + +.. c:function:: memcached_analysis_st * memcached_analyze (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error) + +Compile and link with -lmemcached + +----------- +DESCRIPTION +----------- + + +:program:`libmemcached` has the ability to query a memcached server (or +collection of servers) for their current state. Queries to find state return a +:c:type:`memcached_analysis_st` structure. You are responsible for freeing this structure. + +:c:func:`memcached_analyze` analyzes useful information based on the +provided servers and sets the result to the :c:type:`memcached_analysis_st` +structure. The return value must be freed by the calling application. + +A command line tool, :program:`memstat` with the option :option:`memstat --analyze`, +is provided so that you do not have to write an application to use this method. + + +------ +RETURN +------ + + +A pointer to the allocated :c:type:`memcached_analysis_st` structure on +success and a NULL pointer on failure. You may inspect the error detail by +checking the :c:type:`memcached_return_t` value. + +Any method returning a :c:type:`memcached_analysis_st` expects you to free the +memory allocated for it. + + +---- +HOME +---- + + +To find out more information please check: +`http://libmemcached.org/ `_ + + +-------- +SEE ALSO +-------- + + +:manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)` + -- cgit v1.2.1