blib/lib/Memcached/libmemcached/memcached_stats.pm

filter: Statementstmt 100% 1 / 1 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 1 / 1 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Memcached/libmemcached/memcached_set.pm ↑ Summary blib/lib/Memcached/libmemcached/memcached_strerror.pm »
1 package Memcached::libmemcached::memcached_stats;
2  
3 =head1 NAME
4  
5 memcached_stat, memcached_stat_servername, memcached_stat_get_value, memcached_stat_get_keys - Get memcached statistics
6  
7 =head1 LIBRARY
8  
9 C Client Library for memcached (libmemcached, -lmemcached)
10  
11 =head1 SYNOPSIS
12  
13 #include <memcached.h>
14  
15 memcached_stat_st *memcached_stat (memcached_st *ptr,
16 char *args,
17 memcached_return_t *error);
18  
19 memcached_return_t memcached_stat_servername (memcached_stat_st *stat,
20 char *args,
21 const char *hostname,
22 unsigned int port);
23  
24 char *
25 memcached_stat_get_value (memcached_st *ptr,
26 memcached_stat_st *stat,
27 const char *key,
28 memcached_return_t *error);
29  
30 char **
31 memcached_stat_get_keys (memcached_st *ptr,
32 memcached_stat_st *stat,
33 memcached_return_t *error);
34  
35 =head1 DESCRIPTION
36  
37 libmemcached(3) has the ability to query a memcached server (or collection
38 of servers) for their current state. Queries to find state return a
39 C<memcached_stat_st> structure. You are responsible for freeing this structure.
40 While it is possible to access the structure directly it is not advisable.
41 <memcached_stat_get_value() has been provided to query the structure.
42  
43 memcached_stat() fetches an array of C<memcached_stat_st> structures containing
44 the state of all available memcached servers. The return value must be freed
45 by the calling application. If called with the C<MEMCACHED_BEHAVIOR_USE_UDP>
46 behavior set, a NULL value is returned and the error parameter is set to
47 C<MEMCACHED_NOT_SUPPORTED>.
48  
49 memcached_stat_servername() can be used standalone without a C<memcached_st> to
50 obtain the state of a particular server. "args" is used to define a
51 particular state object (a list of these are not provided for by either
52 the memcached_stat_get_keys() call nor are they defined in the memcached
53 protocol). You must specify the hostname and port of the server you want to
54 obtain information on.
55  
56 memcached_stat_get_value() returns the value of a particular state key. You
57 specify the key you wish to obtain. The key must be null terminated.
58  
59 memcached_stat_get_keys() returns a list of keys that the server has state
60 objects on. You are responsible for freeing this list.
61  
62 A command line tool, memstat(1), is provided so that you do not have to write
63 an application to do this.
64  
65 =head1 RETURN
66  
67 Varies, see particular functions.
68  
69 Any method returning a C<memcached_stat_st> expects you to free the
70 memory allocated for it.
71  
72 =head1 HOME
73  
74 To find out more information please check:
75 L<https://launchpad.net/libmemcached>
76  
77 =head1 AUTHOR
78  
79 Brian Aker, E<lt>brian@tangent.orgE<gt>
80  
81 =head1 SEE ALSO
82  
83 memcached(1) libmemcached(3) memcached_strerror(3)
84  
85 =cut
86  
87 1 1;
« blib/lib/Memcached/libmemcached/memcached_set.pm ↑ Summary blib/lib/Memcached/libmemcached/memcached_strerror.pm »