1MEMCACHED_ANALYZE(3) libmemcached-awesome MEMCACHED_ANALYZE(3)
2
3
4
6 memcached_analyze - libmemcached Documentation
7
9 #include <libmemcached/memcached.h>
10 Compile and link with -lmemcached
11
12 typedef struct memcached_analysis_st memcached_analysis_st
13
14 memcached_analysis_st *memcached_analyze(memcached_st *ptr,
15 memcached_stat_st *stat, memcached_return_t *error)
16
17 Parameters
18
19 • ptr -- pointer to initialized memcached_st struct
20
21 • stat -- pointer to a memcached_stat_st struct to fill
22
23 • error -- pointer to memcached_return_t indicating suc‐
24 cess
25
26 Returns
27 pointer to an allocated and filled out memcached_analy‐
28 sis_t struct
29
31 libmemcached has the ability to query a memcached server (or collection
32 of servers) for their current state. Queries to find state return a
33 memcached_analysis_st structure. You are responsible for freeing this
34 structure.
35
36 memcached_analyze() analyzes useful information based on the provided
37 servers and sets the result to the memcached_analysis_st structure. The
38 return value must be freed by the calling application.
39
40 SEE ALSO:
41 memstat --analyze A command line tool to analyze a memcached server.
42
44 A pointer to the allocated memcached_analysis_st structure on success
45 and a NULL pointer on failure. You may inspect the error detail by
46 checking the memcached_return_t value.
47
48 Any method returning a memcached_analysis_st expects you to free the
49 memory allocated for it.
50
52 memcached(1) libmemcached(3) memcached_strerror(3)
53
54
55
56
571.1 Nov 09, 2022 MEMCACHED_ANALYZE(3)