.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MEMCACHED_ANALYZE" "3" "May 01, 2024" "1.1" "libmemcached-awesome" .SH NAME memcached_analyze \- libmemcached Documentation .SH SYNOPSIS .INDENT 0.0 .TP .B #include Compile and link with \-lmemcached .UNINDENT .INDENT 0.0 .TP .B typedef struct \fI\%memcached_analysis_st\fP memcached_analysis_st .UNINDENT .INDENT 0.0 .TP .B \fI\%memcached_analysis_st\fP *memcached_analyze(\X'tty: link #_CPPv412memcached_st'\fI\%memcached_st\fP\X'tty: link' *ptr, \X'tty: link #_CPPv417memcached_stat_st'\fI\%memcached_stat_st\fP\X'tty: link' *stat, \X'tty: link #_CPPv418memcached_return_t'\fI\%memcached_return_t\fP\X'tty: link' *error) .INDENT 7.0 .TP .B Parameters .INDENT 7.0 .IP \(bu 2 \fBptr\fP \-\- pointer to initialized \X'tty: link #_CPPv412memcached_st'\fI\%memcached_st\fP\X'tty: link' struct .IP \(bu 2 \fBstat\fP \-\- pointer to a \X'tty: link #_CPPv417memcached_stat_st'\fI\%memcached_stat_st\fP\X'tty: link' struct to fill .IP \(bu 2 \fBerror\fP \-\- pointer to \X'tty: link #_CPPv418memcached_return_t'\fI\%memcached_return_t\fP\X'tty: link' indicating success .UNINDENT .TP .B Returns pointer to an allocated and filled out \fBmemcached_analysis_t\fP struct .UNINDENT .UNINDENT .SH DESCRIPTION .sp \fBlibmemcached\fP has the ability to query a memcached server (or collection of servers) for their current state. Queries to find state return a \fI\%memcached_analysis_st\fP structure. You are responsible for freeing this structure. .sp \fI\%memcached_analyze()\fP analyzes useful information based on the provided servers and sets the result to the \fI\%memcached_analysis_st\fP structure. The return value must be freed by the calling application. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 \fBmemstat \-a|\-\-analyze []\fP A command line tool to analyze a memcached server. .UNINDENT .UNINDENT .SH RETURN VALUE .sp A pointer to the allocated \fI\%memcached_analysis_st\fP structure on success and a NULL pointer on failure. You may inspect the error detail by checking the \X'tty: link #_CPPv418memcached_return_t'\fI\%memcached_return_t\fP\X'tty: link' value. .sp Any method returning a \fI\%memcached_analysis_st\fP expects you to free the memory allocated for it. .SH SEE ALSO .sp \fB\X'tty: link https://linux.die.net/man/1/memcached'\fI\%memcached(1)\fP\X'tty: link'\fP \fB\X'tty: link https://linux.die.net/man/3/libmemcached'\fI\%libmemcached(3)\fP\X'tty: link'\fP \fB\X'tty: link https://linux.die.net/man/3/memcached_strerror'\fI\%memcached_strerror(3)\fP\X'tty: link'\fP .\" Generated by docutils manpage writer. .