From: Continuous Integration Date: Wed, 14 Mar 2012 14:40:45 +0000 (-0700) Subject: Merging bzr://gaz.tangent.org/libmemcached/build/ to Build branch X-Git-Tag: 1.0.7~14^2^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=769145a535b2b332e1572625f7b3a06e5ab2b20c;p=awesomized%2Flibmemcached Merging bzr://gaz.tangent.org/libmemcached/build/ to Build branch --- 769145a535b2b332e1572625f7b3a06e5ab2b20c diff --cc docs/man/hashkit_clone.3 index 8a4171de,00000000..2309accf mode 100644,000000..100644 --- a/docs/man/hashkit_clone.3 +++ b/docs/man/hashkit_clone.3 @@@ -1,95 -1,0 +1,95 @@@ - .TH "HASHKIT_CLONE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_CLONE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_clone \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B hashkit_st +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_create(hashkit_st *hash); ++.B \fI\%hashkit_st\fP *hashkit_create(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr); ++.B \fI\%hashkit_st\fP *hashkit_clone(\fI\%hashkit_st\fP\fI\ *destination\fP, const \fI\%hashkit_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void hashkit_free(hashkit_st *hash); ++.B void hashkit_free(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B bool hashkit_is_allocated(const hashkit_st *hash); ++.B bool hashkit_is_allocated(const \fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp - The \fBhashkit_create()\fP function initializes a hashkit object for use. If ++The \fI\%hashkit_create()\fP function initializes a hashkit object for use. If +you pass a NULL argument for hash, then the memory for the object is +allocated. If you specify a pre\-allocated piece of memory, that is +initialized for use. +.sp - The \fBhashkit_clone()\fP function initializes a hashkit object much like - \fBhashkit_create()\fP, but instead of using default settings it will use ++The \fI\%hashkit_clone()\fP function initializes a hashkit object much like ++\fI\%hashkit_create()\fP, but instead of using default settings it will use +the settings of the ptr hashkit object. +.sp - The \fBhashkit_free()\fP frees any resources being consumed by the hashkit - objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP. ++The \fI\%hashkit_free()\fP frees any resources being consumed by the hashkit ++objects that were initialized with \fI\%hashkit_create()\fP or \fI\%hashkit_clone()\fP. +.sp - The \fBhashkit_is_allocated()\fP reports where the memory was allocated ++The \fI\%hashkit_is_allocated()\fP reports where the memory was allocated +for a hashkit object. +.SH RETURN VALUE +.sp - \fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on ++\fI\%hashkit_create()\fP and \fI\%hashkit_clone()\fP will return NULL on +failure or non\-NULL on success. +.sp - \fBhashkit_is_allocated()\fP returns true if the memory for the hashkit - object was allocated inside of \fBhashkit_create()\fP or - \fBhashkit_clone()\fP, otherwise it is false and was user\-supplied memory. ++\fI\%hashkit_is_allocated()\fP returns true if the memory for the hashkit ++object was allocated inside of \fI\%hashkit_create()\fP or ++\fI\%hashkit_clone()\fP, otherwise it is false and was user\-supplied memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_crc32.3 index 4dfc9484,00000000..242fe346 mode 100644,000000..100644 --- a/docs/man/hashkit_crc32.3 +++ b/docs/man/hashkit_crc32.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_CRC32" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_CRC32" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_crc32 \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_create.3 index 988879ff,00000000..8d331198 mode 100644,000000..100644 --- a/docs/man/hashkit_create.3 +++ b/docs/man/hashkit_create.3 @@@ -1,95 -1,0 +1,95 @@@ - .TH "HASHKIT_CREATE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_CREATE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_create \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B hashkit_st +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_create(hashkit_st *hash); ++.B \fI\%hashkit_st\fP *hashkit_create(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr); ++.B \fI\%hashkit_st\fP *hashkit_clone(\fI\%hashkit_st\fP\fI\ *destination\fP, const \fI\%hashkit_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void hashkit_free(hashkit_st *hash); ++.B void hashkit_free(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B bool hashkit_is_allocated(const hashkit_st *hash); ++.B bool hashkit_is_allocated(const \fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp - The \fBhashkit_create()\fP function initializes a hashkit object for use. If ++The \fI\%hashkit_create()\fP function initializes a hashkit object for use. If +you pass a NULL argument for hash, then the memory for the object is +allocated. If you specify a pre\-allocated piece of memory, that is +initialized for use. +.sp - The \fBhashkit_clone()\fP function initializes a hashkit object much like - \fBhashkit_create()\fP, but instead of using default settings it will use ++The \fI\%hashkit_clone()\fP function initializes a hashkit object much like ++\fI\%hashkit_create()\fP, but instead of using default settings it will use +the settings of the ptr hashkit object. +.sp - The \fBhashkit_free()\fP frees any resources being consumed by the hashkit - objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP. ++The \fI\%hashkit_free()\fP frees any resources being consumed by the hashkit ++objects that were initialized with \fI\%hashkit_create()\fP or \fI\%hashkit_clone()\fP. +.sp - The \fBhashkit_is_allocated()\fP reports where the memory was allocated ++The \fI\%hashkit_is_allocated()\fP reports where the memory was allocated +for a hashkit object. +.SH RETURN VALUE +.sp - \fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on ++\fI\%hashkit_create()\fP and \fI\%hashkit_clone()\fP will return NULL on +failure or non\-NULL on success. +.sp - \fBhashkit_is_allocated()\fP returns true if the memory for the hashkit - object was allocated inside of \fBhashkit_create()\fP or - \fBhashkit_clone()\fP, otherwise it is false and was user\-supplied memory. ++\fI\%hashkit_is_allocated()\fP returns true if the memory for the hashkit ++object was allocated inside of \fI\%hashkit_create()\fP or ++\fI\%hashkit_clone()\fP, otherwise it is false and was user\-supplied memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_fnv1_32.3 index dc88bec7,00000000..83714640 mode 100644,000000..100644 --- a/docs/man/hashkit_fnv1_32.3 +++ b/docs/man/hashkit_fnv1_32.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_FNV1_32" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_FNV1_32" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_fnv1_32 \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_fnv1_64.3 index 315d3cf6,00000000..0826d1ca mode 100644,000000..100644 --- a/docs/man/hashkit_fnv1_64.3 +++ b/docs/man/hashkit_fnv1_64.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_FNV1_64" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_FNV1_64" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_fnv1_64 \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_fnv1a_32.3 index 85b1baf7,00000000..7c688898 mode 100644,000000..100644 --- a/docs/man/hashkit_fnv1a_32.3 +++ b/docs/man/hashkit_fnv1a_32.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_FNV1A_32" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_FNV1A_32" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_fnv1a_32 \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_fnv1a_64.3 index 48dd0948,00000000..7bcb4d77 mode 100644,000000..100644 --- a/docs/man/hashkit_fnv1a_64.3 +++ b/docs/man/hashkit_fnv1a_64.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_FNV1A_64" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_FNV1A_64" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_fnv1a_64 \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_free.3 index 3295d4e1,00000000..42360b38 mode 100644,000000..100644 --- a/docs/man/hashkit_free.3 +++ b/docs/man/hashkit_free.3 @@@ -1,95 -1,0 +1,95 @@@ - .TH "HASHKIT_FREE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_FREE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_free \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B hashkit_st +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_create(hashkit_st *hash); ++.B \fI\%hashkit_st\fP *hashkit_create(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr); ++.B \fI\%hashkit_st\fP *hashkit_clone(\fI\%hashkit_st\fP\fI\ *destination\fP, const \fI\%hashkit_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void hashkit_free(hashkit_st *hash); ++.B void hashkit_free(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B bool hashkit_is_allocated(const hashkit_st *hash); ++.B bool hashkit_is_allocated(const \fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp - The \fBhashkit_create()\fP function initializes a hashkit object for use. If ++The \fI\%hashkit_create()\fP function initializes a hashkit object for use. If +you pass a NULL argument for hash, then the memory for the object is +allocated. If you specify a pre\-allocated piece of memory, that is +initialized for use. +.sp - The \fBhashkit_clone()\fP function initializes a hashkit object much like - \fBhashkit_create()\fP, but instead of using default settings it will use ++The \fI\%hashkit_clone()\fP function initializes a hashkit object much like ++\fI\%hashkit_create()\fP, but instead of using default settings it will use +the settings of the ptr hashkit object. +.sp - The \fBhashkit_free()\fP frees any resources being consumed by the hashkit - objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP. ++The \fI\%hashkit_free()\fP frees any resources being consumed by the hashkit ++objects that were initialized with \fI\%hashkit_create()\fP or \fI\%hashkit_clone()\fP. +.sp - The \fBhashkit_is_allocated()\fP reports where the memory was allocated ++The \fI\%hashkit_is_allocated()\fP reports where the memory was allocated +for a hashkit object. +.SH RETURN VALUE +.sp - \fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on ++\fI\%hashkit_create()\fP and \fI\%hashkit_clone()\fP will return NULL on +failure or non\-NULL on success. +.sp - \fBhashkit_is_allocated()\fP returns true if the memory for the hashkit - object was allocated inside of \fBhashkit_create()\fP or - \fBhashkit_clone()\fP, otherwise it is false and was user\-supplied memory. ++\fI\%hashkit_is_allocated()\fP returns true if the memory for the hashkit ++object was allocated inside of \fI\%hashkit_create()\fP or ++\fI\%hashkit_clone()\fP, otherwise it is false and was user\-supplied memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_functions.3 index 7734a6d9,00000000..d623ef6f mode 100644,000000..100644 --- a/docs/man/hashkit_functions.3 +++ b/docs/man/hashkit_functions.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_FUNCTIONS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_FUNCTIONS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_functions \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_hsieh.3 index 48d37972,00000000..8291e98f mode 100644,000000..100644 --- a/docs/man/hashkit_hsieh.3 +++ b/docs/man/hashkit_hsieh.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_HSIEH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_HSIEH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_hsieh \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_is_allocated.3 index b2fcc2e8,00000000..742a5b51 mode 100644,000000..100644 --- a/docs/man/hashkit_is_allocated.3 +++ b/docs/man/hashkit_is_allocated.3 @@@ -1,95 -1,0 +1,95 @@@ - .TH "HASHKIT_IS_ALLOCATED" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_IS_ALLOCATED" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_is_allocated \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B hashkit_st +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_create(hashkit_st *hash); ++.B \fI\%hashkit_st\fP *hashkit_create(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr); ++.B \fI\%hashkit_st\fP *hashkit_clone(\fI\%hashkit_st\fP\fI\ *destination\fP, const \fI\%hashkit_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void hashkit_free(hashkit_st *hash); ++.B void hashkit_free(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B bool hashkit_is_allocated(const hashkit_st *hash); ++.B bool hashkit_is_allocated(const \fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp - The \fBhashkit_create()\fP function initializes a hashkit object for use. If ++The \fI\%hashkit_create()\fP function initializes a hashkit object for use. If +you pass a NULL argument for hash, then the memory for the object is +allocated. If you specify a pre\-allocated piece of memory, that is +initialized for use. +.sp - The \fBhashkit_clone()\fP function initializes a hashkit object much like - \fBhashkit_create()\fP, but instead of using default settings it will use ++The \fI\%hashkit_clone()\fP function initializes a hashkit object much like ++\fI\%hashkit_create()\fP, but instead of using default settings it will use +the settings of the ptr hashkit object. +.sp - The \fBhashkit_free()\fP frees any resources being consumed by the hashkit - objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP. ++The \fI\%hashkit_free()\fP frees any resources being consumed by the hashkit ++objects that were initialized with \fI\%hashkit_create()\fP or \fI\%hashkit_clone()\fP. +.sp - The \fBhashkit_is_allocated()\fP reports where the memory was allocated ++The \fI\%hashkit_is_allocated()\fP reports where the memory was allocated +for a hashkit object. +.SH RETURN VALUE +.sp - \fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on ++\fI\%hashkit_create()\fP and \fI\%hashkit_clone()\fP will return NULL on +failure or non\-NULL on success. +.sp - \fBhashkit_is_allocated()\fP returns true if the memory for the hashkit - object was allocated inside of \fBhashkit_create()\fP or - \fBhashkit_clone()\fP, otherwise it is false and was user\-supplied memory. ++\fI\%hashkit_is_allocated()\fP returns true if the memory for the hashkit ++object was allocated inside of \fI\%hashkit_create()\fP or ++\fI\%hashkit_clone()\fP, otherwise it is false and was user\-supplied memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_jenkins.3 index 1b6d046a,00000000..e352895c mode 100644,000000..100644 --- a/docs/man/hashkit_jenkins.3 +++ b/docs/man/hashkit_jenkins.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_JENKINS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_JENKINS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_jenkins \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_md5.3 index 9312225a,00000000..bfa55436 mode 100644,000000..100644 --- a/docs/man/hashkit_md5.3 +++ b/docs/man/hashkit_md5.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_MD5" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_MD5" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_md5 \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_murmur.3 index 6ecab1bd,00000000..ba65a699 mode 100644,000000..100644 --- a/docs/man/hashkit_murmur.3 +++ b/docs/man/hashkit_murmur.3 @@@ -1,104 -1,0 +1,104 @@@ - .TH "HASHKIT_MURMUR" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_MURMUR" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_murmur \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Various hash functions to use for calculating values for keys +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_default(const char *key, size_t key_length); ++.B uint32_t hashkit_default(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_64(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_64(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_fnv1a_32(const char *key, size_t key_length); ++.B uint32_t hashkit_fnv1a_32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_crc32(const char *key, size_t key_length); ++.B uint32_t hashkit_crc32(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_hsieh(const char *key, size_t key_length); ++.B uint32_t hashkit_hsieh(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_murmur(const char *key, size_t key_length); ++.B uint32_t hashkit_murmur(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_jenkins(const char *key, size_t key_length); ++.B uint32_t hashkit_jenkins(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t hashkit_md5(const char *key, size_t key_length); ++.B uint32_t hashkit_md5(const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp +These functions generate hash values from a key using a variety of +algorithms. These functions can be used standalone, or as arguments +to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3). +.sp - The hashkit_hsieh() is only available if the library is built with ++The hashkit_hsieh is only available if the library is built with +the appropriate flag enabled. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP \fIhashkit_set_continuum_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/hashkit_value.3 index 58448b67,00000000..22ff2208 mode 100644,000000..100644 --- a/docs/man/hashkit_value.3 +++ b/docs/man/hashkit_value.3 @@@ -1,66 -1,0 +1,66 @@@ - .TH "HASHKIT_VALUE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "HASHKIT_VALUE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +hashkit_value \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Generate a value for the given key +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t hashkit_value(hashkit_st *hash, const char *key, size_t key_length); ++.B uint32_t hashkit_value(hashkit_st\fI\ *hash\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit +.SH DESCRIPTION +.sp - The \fBhashkit_value()\fP function generates a 32\-bit hash value from the ++The \fI\%hashkit_value()\fP function generates a 32\-bit hash value from the +given key and key_length. The hash argument is an initialized hashkit +object, and distribution type and hash function is used from this +object while generating the value. +.SH RETURN VALUE +.sp +A 32\-bit hash value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_set_distribution(3)\fP \fIhashkit_set_hash_fn(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/libhashkit.3 index 239ef480,00000000..5ea9f810 mode 100644,000000..100644 --- a/docs/man/libhashkit.3 +++ b/docs/man/libhashkit.3 @@@ -1,57 -1,0 +1,57 @@@ - .TH "LIBHASHKIT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "LIBHASHKIT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +libhashkit \- libhashkit Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +.nf +.ft C +cc [ flag ... ] file ... \-lhashkit + +#include +.ft P +.fi +.SH DESCRIPTION +.sp +libhashkit is a small and thread\-safe client library that provides a collection of useful hashing algorithm. libhashkit is distributed with libmemcached. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIlibhashkit(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/libmemcached.3 index 57c91cf9,00000000..f543e464 mode 100644,000000..100644 --- a/docs/man/libmemcached.3 +++ b/docs/man/libmemcached.3 @@@ -1,201 -1,0 +1,206 @@@ - .TH "LIBMEMCACHED" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "LIBMEMCACHED" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +libmemcached \- Introducing the C Client Library for memcached +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.sp +Compile and link with \-lmemcached + +.sp +.ce +---- + +.ce 0 +.sp +.sp +libMemcached is an open source C/C++ client library and tools for the memcached server (\fI\%http://memcached.org/\fP). It has been designed to be light on memory usage, thread safe, and provide full access to server side methods. +.sp +libMemcached was designed to provide the greatest number of options to use Memcached. Some of the features provided: +.INDENT 0.0 +.IP 1. 3 +Asynchronous and Synchronous Transport Support. +.IP 2. 3 +Consistent Hashing and Distribution. +.IP 3. 3 +Tunable Hashing algorithm to match keys. +.IP 4. 3 +Access to large object support. +.IP 5. 3 +Local replication. +.IP 6. 3 +A complete reference guide and documentation to the API. +.IP 7. 3 +Tools to Manage your Memcached networks. +.UNINDENT +.SH DESCRIPTION +.sp +"Memcached is a high\-performance, distributed memory object caching +system, generic in nature, but intended for use in speeding up dynamic web +applications by alleviating database load." \fI\%http://memcached.org/\fP +.sp +\fBlibmemcached\fP is a small, thread\-safe client library for the +memcached protocol. The code has all been written to allow +for both web and embedded usage. It handles the work behind routing +individual keys to specific servers specified by the developer (and values are +matched based on server order as supplied by the user). It implements +a modular and consistent method of object distribution. +.sp +There are multiple implemented routing and hashing methods. See the +\fBmemcached_behavior_set()\fP manpage for more information. +.sp +All operations are performed against a \fBmemcached_st\fP structure. +These structures can either be dynamically allocated or statically +allocated and then initialized by \fBmemcached_create()\fP. Functions have +been written in order to encapsulate the \fBmemcached_st\fP. It is not +recommended that you operate directly against the structure. +.sp +Nearly all functions return a \fBmemcached_return_t\fP value. +This value can be translated to a printable string with - \fBmemcached_strerror()\fP. ++\fBmemcached_strerror\fP. +.sp +Objects are stored on servers by hashing keys. The hash value maps the key to a particular server. All clients understand how this hashing works, so it is possibly to reliably both push data to a server and retrieve data from a server. +.sp +Group keys can be optionally used to group sets of objects with servers. +.sp +Namespaces are supported, and can be used to partition caches so that multiple applications can use the same memcached servers. +.sp +\fBmemcached_st\fP structures are thread\-safe, but each thread must +contain its own structure (that is, if you want to share these among +threads you must provide your own locking). No global variables are +used in this library. +.sp +If you are working with GNU autotools you will want to add the following to +your COPYING to properly include libmemcached in your application. +.sp +PKG_CHECK_MODULES(DEPS, libmemcached >= 0.8.0) +AC_SUBST(DEPS_CFLAGS) +AC_SUBST(DEPS_LIBS) +.sp +Some features of the library must be enabled through \fBmemcached_behavior_set()\fP. +.sp +Hope you enjoy it! +.SH CONSTANTS +.sp +A number of constants have been provided for in the library. +.INDENT 0.0 +.TP +.B MEMCACHED_DEFAULT_PORT +The default port used by memcached(3). +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_MAX_KEY +Default maximum size of a key (which includes the null pointer). Master keys +have no limit, this only applies to keys used for storage. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_MAX_KEY +Default size of key (which includes the null pointer). +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_STRIDE +This is the "stride" used in the consistent hash used between replicas. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_MAX_HOST_LENGTH +Maximum allowed size of the hostname. +.UNINDENT +.INDENT 0.0 +.TP +.B LIBMEMCACHED_VERSION_STRING +String value of libmemcached version such as "1.23.4" +.UNINDENT +.INDENT 0.0 +.TP +.B LIBMEMCACHED_VERSION_HEX +Hex value of the version number. "0x00048000" This can be used for comparing versions based on number. +.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_PREFIX_KEY_MAX_SIZE ++Maximum length allowed for namespacing of a key. ++.UNINDENT +.SH THREADS AND PROCESSES +.sp +When using threads or forked processes it is important to keep one instance +of \fBmemcached_st\fP per process or thread. Without creating your own +locking structures you can not share a single \fBmemcached_st\fP. However, +you can call \fBmemcached_quit()\fP on a \fBmemcached_st\fP and then use the resulting cloned structure. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached_examples(3)\fP +\fIlibmemcached(1)\fP \fImemcat(1)\fP \fImemcp(1)\fP +\fImemflush(1)\fP \fImemrm(1)\fP \fImemslap(1)\fP +\fImemstat(1)\fP \fImemcached_fetch(3)\fP +\fImemcached_replace(3)\fP \fImemcached_server_list_free(3)\fP +\fIlibmemcached_examples(3)\fP \fImemcached_clone(3)\fP +\fImemcached_free(3)\fP \fImemcached_server_add(3)\fP +\fImemcached_server_push(3)\fP \fImemcached_add(3)\fP +\fImemcached_get(3)\fP \fImemcached_server_count(3)\fP +\fImemcached_create(3)\fP \fImemcached_increment(3)\fP +\fImemcached_server_list(3)\fP \fImemcached_set(3)\fP +\fImemcached_decrement(3)\fP \fImemcached_mget(3)\fP +\fImemcached_server_list_append(3)\fP \fImemcached_strerror(3)\fP +\fImemcached_delete(3)\fP \fImemcached_quit(3)\fP +\fImemcached_server_list_count(3)\fP \fImemcached_verbosity(3)\fP +\fImemcached_server_add_unix_socket(3)\fP +\fImemcached_result_create(3)\fP \fImemcached_result_free(3)\fP +\fImemcached_result_key_value(3)\fP +\fImemcached_result_key_length(3)\fP +\fImemcached_result_value(3)\fP \fImemcached_result_length(3)\fP +\fImemcached_result_flags(3)\fP \fImemcached_result_cas(3)\fP +\fImemcached_result_st(3)\fP \fImemcached_append(3)\fP +\fImemcached_prepend(3)\fP \fImemcached_fetch_result(3)\fP +\fImemerror(1)\fP \fImemcached_get_by_key(3)\fP +\fImemcached_mget_by_key(3)\fP \fImemcached_delete_by_key(3)\fP +\fImemcached_fetch_execute(3)\fP \fImemcached_callback_get(3)\fP +\fImemcached_callback_set(3)\fP \fImemcached_version(3)\fP +\fImemcached_lib_version(3)\fP \fImemcached_result_set_value(3)\fP +\fImemcached_dump(3)\fP \fImemdump(1)\fP +\fImemcached_set_memory_allocators(3)\fP +\fImemcached_get_memory_allocators(3)\fP +\fImemcached_get_user_data(3)\fP \fImemcached_set_user_data(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/libmemcached_check_configuration.3 index 9584e26f,00000000..bf54457e mode 100644,000000..100644 --- a/docs/man/libmemcached_check_configuration.3 +++ b/docs/man/libmemcached_check_configuration.3 @@@ -1,299 -1,0 +1,299 @@@ - .TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +libmemcached_check_configuration \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_st *memcached(const char\fI\ *string\fP, size_t\fI\ string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t libmemcached_check_configuration(const char\fI\ *option_string\fP, size_t\fI\ length\fP, char\fI\ *error_buffer\fP, size_t\fI\ error_buffer_size\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +Libmemcached implements a custom language for configuring and modifying +servers. By passing in an option string you can generate a \fBmemcached_st\fP object +that you can use in your application directly. +.INDENT 0.0 +.TP +.B \-\-SERVER=:/? +.UNINDENT +.sp +Provide a servername to be used by the client. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1. +.INDENT 0.0 +.TP +.B \-\-SOCKET=/? +.UNINDENT +.sp +Provide a filepath to a UNIX socket file. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1. +.INDENT 0.0 +.TP +.B \-\-VERIFY\-KEY +.UNINDENT +.sp +Verify that keys that are being used fit within the design of the protocol being used. +.INDENT 0.0 +.TP +.B \-\-REMOVE_FAILED_SERVERS +.UNINDENT +.sp +Enable the behavior MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS. +.INDENT 0.0 +.TP +.B \-\-BINARY\-PROTOCOL +.UNINDENT +.sp +Force all connections to use the binary protocol. +.INDENT 0.0 +.TP +.B \-\-BUFFER\-REQUESTS +.UNINDENT +.sp +Enable MEMCACHED_BEHAVIOR_BUFFER_REQUESTS. +.INDENT 0.0 +.TP +.B \-\-CONFIGURE\-FILE= +.UNINDENT +.sp +Provide a configuration file to be used to load requests. Beware that by using a configuration file libmemcached will reset memcached_st based on information only contained in the file. +.INDENT 0.0 +.TP +.B \-\-CONNECT\-TIMEOUT= +.UNINDENT +.sp +Enable MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT. +.INDENT 0.0 +.TP +.B \-\-DISTRIBUTION= +.UNINDENT +.sp +Set the distribution model used by the client. See :manpage:\(ga\(ga for more details. +.INDENT 0.0 +.TP +.B \-\-HASH= +.UNINDENT +.sp +Set the hashing alogrthm used for placing keys on servers. +.INDENT 0.0 +.TP +.B \-\-HASH\-WITH\-NAMESPACE +.UNINDENT +.sp +When enabled the prefix key will be added to the key when determining which +server to store the data in. +.INDENT 0.0 +.TP +.B \-\-NOREPLY +.UNINDENT +.sp +Enable "no reply" for all calls that support this. It is highly recommended +that you use this option with the binary protocol only. +.INDENT 0.0 +.TP +.B \-\-NUMBER\-OF\-REPLICAS= +.UNINDENT +.sp +Set the nummber of servers that keys will be replicated to. +.INDENT 0.0 +.TP +.B \-\-RANDOMIZE\-REPLICA\-READ +.UNINDENT +.sp +Select randomly the server within the replication pool to read from. +.INDENT 0.0 +.TP +.B \-\-SORT\-HOSTS +.UNINDENT +.sp +When adding new servers always calculate their distribution based on sorted naming order. +.INDENT 0.0 +.TP +.B \-\-SUPPORT\-CAS +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SUPPORT_CAS +.INDENT 0.0 +.TP +.B \-\-USE\-UDP +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_USE_UDP +.INDENT 0.0 +.TP +.B \-\-NAMESPACE= +.UNINDENT +.sp +A namespace is a container that provides context for keys, only other +requests that know the namespace can access these values. This is +accomplished by prepending the namespace value to all keys. +.SS Mecached Pool Options: +.INDENT 0.0 +.TP +.B \-\-POOL\-MIN +.UNINDENT +.sp +Initial size of pool. +.INDENT 0.0 +.TP +.B \-\-POOL\-MAX +.UNINDENT +.sp +Maximize size of the pool. +.SS I/O Options: +.INDENT 0.0 +.TP +.B \-\-TCP\-NODELAY +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_TCP_NODELAY +.INDENT 0.0 +.TP +.B \-\-TCP\-KEEPALIVE +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_TCP_KEEPALIVE +.INDENT 0.0 +.TP +.B \-\-RETRY\-TIMEOUT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_RETRY_TIMEOUT +.INDENT 0.0 +.TP +.B \-\-SERVER\-FAILURE\-LIMIT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.INDENT 0.0 +.TP +.B \-\-SND\-TIMEOUT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SND_TIMEOUT +.INDENT 0.0 +.TP +.B \-\-SOCKET\-RECV\-SIZE= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE +.INDENT 0.0 +.TP +.B \-\-SOCKET\-SEND\-SIZE= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE +.INDENT 0.0 +.TP +.B \-\-POLL\-TIMEOUT= +.UNINDENT +.sp +That sets the value of the timeout used by :manpage: \fIpoll()\fP. +.INDENT 0.0 +.TP +.B \-\-IO\-BYTES\-WATERMARK= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-IO\-KEY\-PREFETCH= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-IO\-MSG\-WATERMARK= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-TCP\-KEEPIDLE +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-RCV\-TIMEOUT= +.UNINDENT +.SS Other: +.INDENT 0.0 +.TP +.B INCLUDE +.UNINDENT +.sp +Include a file in configuration. Unlike \-\-CONFIGURE\-FILE= this will not reset memcached_st +.INDENT 0.0 +.TP +.B RESET +.UNINDENT +.sp +Reset memcached_st and continue to process. +.INDENT 0.0 +.TP +.B END +.UNINDENT +.sp +End configutation processing. +.INDENT 0.0 +.TP +.B ERROR +.UNINDENT +.sp +End configutation processing and throw an error. +.SH RETURN +.sp +\fI\%memcached()\fP returns a pointer to the memcached_st that was +created (or initialized). On an allocation failure, it returns NULL. +.SH EXAMPLE +.sp +.nf +.ft C +const char *config_string= "\-\-SERVER=host10.example.com \-\-SERVER=host11.example.com \-\-SERVER=host10.example.com" +memcached_st *memc= memcached(config_string, strlen(config_string); +{ + ... +} +memcached_free(memc); +.ft P +.fi +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/libmemcached_configuration.3 index 2947d84a,00000000..ae7de76f mode 100644,000000..100644 --- a/docs/man/libmemcached_configuration.3 +++ b/docs/man/libmemcached_configuration.3 @@@ -1,299 -1,0 +1,299 @@@ - .TH "LIBMEMCACHED_CONFIGURATION" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "LIBMEMCACHED_CONFIGURATION" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +libmemcached_configuration \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_st *memcached(const char\fI\ *string\fP, size_t\fI\ string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t libmemcached_check_configuration(const char\fI\ *option_string\fP, size_t\fI\ length\fP, char\fI\ *error_buffer\fP, size_t\fI\ error_buffer_size\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +Libmemcached implements a custom language for configuring and modifying +servers. By passing in an option string you can generate a \fBmemcached_st\fP object +that you can use in your application directly. +.INDENT 0.0 +.TP +.B \-\-SERVER=:/? +.UNINDENT +.sp +Provide a servername to be used by the client. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1. +.INDENT 0.0 +.TP +.B \-\-SOCKET=/? +.UNINDENT +.sp +Provide a filepath to a UNIX socket file. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1. +.INDENT 0.0 +.TP +.B \-\-VERIFY\-KEY +.UNINDENT +.sp +Verify that keys that are being used fit within the design of the protocol being used. +.INDENT 0.0 +.TP +.B \-\-REMOVE_FAILED_SERVERS +.UNINDENT +.sp +Enable the behavior MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS. +.INDENT 0.0 +.TP +.B \-\-BINARY\-PROTOCOL +.UNINDENT +.sp +Force all connections to use the binary protocol. +.INDENT 0.0 +.TP +.B \-\-BUFFER\-REQUESTS +.UNINDENT +.sp +Enable MEMCACHED_BEHAVIOR_BUFFER_REQUESTS. +.INDENT 0.0 +.TP +.B \-\-CONFIGURE\-FILE= +.UNINDENT +.sp +Provide a configuration file to be used to load requests. Beware that by using a configuration file libmemcached will reset memcached_st based on information only contained in the file. +.INDENT 0.0 +.TP +.B \-\-CONNECT\-TIMEOUT= +.UNINDENT +.sp +Enable MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT. +.INDENT 0.0 +.TP +.B \-\-DISTRIBUTION= +.UNINDENT +.sp +Set the distribution model used by the client. See :manpage:\(ga\(ga for more details. +.INDENT 0.0 +.TP +.B \-\-HASH= +.UNINDENT +.sp +Set the hashing alogrthm used for placing keys on servers. +.INDENT 0.0 +.TP +.B \-\-HASH\-WITH\-NAMESPACE +.UNINDENT +.sp +When enabled the prefix key will be added to the key when determining which +server to store the data in. +.INDENT 0.0 +.TP +.B \-\-NOREPLY +.UNINDENT +.sp +Enable "no reply" for all calls that support this. It is highly recommended +that you use this option with the binary protocol only. +.INDENT 0.0 +.TP +.B \-\-NUMBER\-OF\-REPLICAS= +.UNINDENT +.sp +Set the nummber of servers that keys will be replicated to. +.INDENT 0.0 +.TP +.B \-\-RANDOMIZE\-REPLICA\-READ +.UNINDENT +.sp +Select randomly the server within the replication pool to read from. +.INDENT 0.0 +.TP +.B \-\-SORT\-HOSTS +.UNINDENT +.sp +When adding new servers always calculate their distribution based on sorted naming order. +.INDENT 0.0 +.TP +.B \-\-SUPPORT\-CAS +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SUPPORT_CAS +.INDENT 0.0 +.TP +.B \-\-USE\-UDP +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_USE_UDP +.INDENT 0.0 +.TP +.B \-\-NAMESPACE= +.UNINDENT +.sp +A namespace is a container that provides context for keys, only other +requests that know the namespace can access these values. This is +accomplished by prepending the namespace value to all keys. +.SS Mecached Pool Options: +.INDENT 0.0 +.TP +.B \-\-POOL\-MIN +.UNINDENT +.sp +Initial size of pool. +.INDENT 0.0 +.TP +.B \-\-POOL\-MAX +.UNINDENT +.sp +Maximize size of the pool. +.SS I/O Options: +.INDENT 0.0 +.TP +.B \-\-TCP\-NODELAY +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_TCP_NODELAY +.INDENT 0.0 +.TP +.B \-\-TCP\-KEEPALIVE +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_TCP_KEEPALIVE +.INDENT 0.0 +.TP +.B \-\-RETRY\-TIMEOUT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_RETRY_TIMEOUT +.INDENT 0.0 +.TP +.B \-\-SERVER\-FAILURE\-LIMIT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.INDENT 0.0 +.TP +.B \-\-SND\-TIMEOUT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SND_TIMEOUT +.INDENT 0.0 +.TP +.B \-\-SOCKET\-RECV\-SIZE= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE +.INDENT 0.0 +.TP +.B \-\-SOCKET\-SEND\-SIZE= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE +.INDENT 0.0 +.TP +.B \-\-POLL\-TIMEOUT= +.UNINDENT +.sp +That sets the value of the timeout used by :manpage: \fIpoll()\fP. +.INDENT 0.0 +.TP +.B \-\-IO\-BYTES\-WATERMARK= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-IO\-KEY\-PREFETCH= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-IO\-MSG\-WATERMARK= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-TCP\-KEEPIDLE +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-RCV\-TIMEOUT= +.UNINDENT +.SS Other: +.INDENT 0.0 +.TP +.B INCLUDE +.UNINDENT +.sp +Include a file in configuration. Unlike \-\-CONFIGURE\-FILE= this will not reset memcached_st +.INDENT 0.0 +.TP +.B RESET +.UNINDENT +.sp +Reset memcached_st and continue to process. +.INDENT 0.0 +.TP +.B END +.UNINDENT +.sp +End configutation processing. +.INDENT 0.0 +.TP +.B ERROR +.UNINDENT +.sp +End configutation processing and throw an error. +.SH RETURN +.sp +\fI\%memcached()\fP returns a pointer to the memcached_st that was +created (or initialized). On an allocation failure, it returns NULL. +.SH EXAMPLE +.sp +.nf +.ft C +const char *config_string= "\-\-SERVER=host10.example.com \-\-SERVER=host11.example.com \-\-SERVER=host10.example.com" +memcached_st *memc= memcached(config_string, strlen(config_string); +{ + ... +} +memcached_free(memc); +.ft P +.fi +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/libmemcached_examples.3 index 9e1b8e13,00000000..756411ea mode 100644,000000..100644 --- a/docs/man/libmemcached_examples.3 +++ b/docs/man/libmemcached_examples.3 @@@ -1,161 -1,0 +1,161 @@@ - .TH "LIBMEMCACHED_EXAMPLES" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "LIBMEMCACHED_EXAMPLES" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +libmemcached_examples \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Examples for libmemcached +.SH DESCRIPTION +.sp +For full examples, test cases are found in tests/*.c in the main +distribution. These are always up to date, and are used for each test run of +the library. +.SH CONNECTING TO SERVERS +.sp +.nf +.ft C +const char *config_string= "\-\-SERVER=host10.example.com \-\-SERVER=host11.example.com \-\-SERVER=host10.example.com" +memcached_st *memc= memcached(config_string, strlen(config_string); +{ +\&... +} + memcached_free(memc); +.ft P +.fi +.sp +In the above code you create a \fBmemcached_st\fP object with three server - by making use of \fBmemcached_create_with_options()\fP. ++by making use of \fBmemcached_create()\fP. +.SH CREATING A POOL OF SERVERS +.sp +.nf +.ft C + +.ft P +.fi +.sp +Creating a pool of Servers: +.sp +.nf +.ft C +const char *config_string= "\-\-SERVER=host10.example.com \-\-SERVER=host11.example.com \-\-SERVER=host10.example.com"; + +memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string)); + +memcached_return_t rc; + +memcached_st *memc= memcached_pool_pop(pool, false, &rc); + +\&.... do work + +/* + Release the memc_ptr that was pulled from the pool +*/ +memcached_pool_push(pool, memc); + +/* + Destroy the pool. +*/ +memcached_pool_destroy(pool); +.ft P +.fi +.sp +In the above code you create a \fBmemcached_pool_st\fP object with three +server by making use of \fBmemcached_pool()\fP. +.sp +When \fBmemcached_pool_destroy()\fP all memory will be released that is associated +with the pool. +.SH ADDING A VALUE TO THE SERVER +.sp +.nf +.ft C + +.ft P +.fi +.sp +Adding a value to the Server: +.sp +.nf +.ft C +char *key= "foo"; +char *value= "value"; + +memcached_return_t rc= memcached_set(memc, key, strlen(key), value, value_length, (time_t)0, (uint32_t)0); + +if (rc != MEMCACHED_SUCCESS) +{ +\&... // handle failure +} +.ft P +.fi +.sp +It is best practice to always look at the return value of any operation. +.SH FETCHING MULTIPLE VALUES +.sp +.nf +.ft C +memcached_return_t rc; +char *keys[]= {"fudge", "son", "food"}; +size_t key_length[]= {5, 3, 4}; +unsigned int x; +uint32_t flags; + +char return_key[MEMCACHED_MAX_KEY]; +size_t return_key_length; +char *return_value; +size_t return_value_length; + +rc= memcached_mget(memc, keys, key_length, 3); + +x= 0; +while ((return_value= memcached_fetch(memc, return_key, &return_key_length, + &return_value_length, &flags, &rc))) +{ + free(return_value); + x++; +} +.ft P +.fi +.sp +Notice that you freed values returned from memcached_fetch(). The define +\fBMEMCACHED_MAX_KEY\fP is provided for usage. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/libmemcachedutil.3 index 2ecce7c9,00000000..b8970703 mode 100644,000000..100644 --- a/docs/man/libmemcachedutil.3 +++ b/docs/man/libmemcachedutil.3 @@@ -1,67 -1,0 +1,67 @@@ - .TH "LIBMEMCACHEDUTIL" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "LIBMEMCACHEDUTIL" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +libmemcachedutil \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Utility library for libmemcached +.SH SYNOPSIS +.sp +.nf +.ft C +cc [ flag ... ] file ... \-lmemcachedutil + +#include +.ft P +.fi +.SH DESCRIPTION +.sp +\fBlibmemcachedutil\fP is a small and thread\-safe client library that +provides extra functionality built on top of \fBlibmemcached\fP. +.SH THREADS +.sp +Do not try to access an instance of \fBmemcached_st\fP from multiple threads +at the same time. If you want to access memcached from multiple threads +you should either clone the \fBmemcached_st\fP, or use the memcached pool +implementation. see \fBmemcached_pool_create()\fP. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIlibmemcached(3)\fP \fImemcached_pool_create(3)\fP \fImemcached_pool_destroy(3)\fP \fImemcached_pool_pop(3)\fP \fImemcached_pool_push(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memaslap.1 index 633aab34,00000000..0cb1faaf mode 100644,000000..100644 --- a/docs/man/memaslap.1 +++ b/docs/man/memaslap.1 @@@ -1,1149 -1,0 +1,1153 @@@ - .TH "MEMASLAP" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMASLAP" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memaslap \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +memaslap [options] +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_SERVERS ++.UNINDENT +.SH DESCRIPTION +.sp +\fBmemaslap\fP is a load generation and benchmark tool for memcached +servers. It generates configurable workload such as threads, concurrencies, +connections, run time, overwrite, miss rate, key size, value size, get/set +proportion, expected throughput, and so on. Furthermore, it also testss data +verification, expire\-time verification, UDP, binary protocol, facebook test, +replication test, multi\-get and reconnection, etc. +.sp +Memaslap manages network connections like memcached with +libevent. Each thread of memaslap is bound with a CPU core, all +the threads don\(aqt communicate with each other, and there are several socket +connections in each thread. Each connection keeps key size distribution, +value size distribution, and command distribution by itself. +.sp - You can specify servers via the \fI\-\-servers\fP option or via the - environment variable \fBMEMCACHED_SERVERS\fP. ++You can specify servers via the \fImemslap \-\-servers\fP option or via the ++environment variable \fI\%MEMCACHED_SERVERS\fP. +.SH FEATURES +.sp +Memslap is developed to for the following purposes: +.sp +Manages network connections with libevent asynchronously. +.sp +Set both TCP and UDP up to use non\-blocking IO. +.sp +Improves parallelism: higher performance in multi\-threads environments. +.sp +Improves time efficiency: faster processing speed. +.sp +Generates key and value more efficiently; key size distribution and value size distribution are configurable. +.sp +Supports get, multi\-get, and set commands; command distribution is configurable. +.sp +Supports controllable miss rate and overwrite rate. +.sp +Supports data and expire\-time verification. +.sp +Supports dumping statistic information periodically. +.sp +Supports thousands of TCP connections. +.sp +Supports binary protocol. +.sp +Supports facebook test (set with TCP and multi\-get with UDP) and replication test. +.SH DETAILS +.SS Effective implementation of network. +.sp +For memaslap, both TCP and UDP use non\-blocking network IO. All +the network events are managed by libevent as memcached. The network module +of memaslap is similar to memcached. Libevent can ensure +memaslap can handle network very efficiently. +.SS Effective implementation of multi\-threads and concurrency +.sp +Memslap has the similar implementation of multi\-threads to +memcached. Memslap creates one or more self\-governed threads; +each thread is bound with one CPU core if the system testss setting CPU +core affinity. +.sp +In addition, each thread has a libevent to manage the events of the network; +each thread has one or more self\-governed concurrencies; and each +concurrency has one or more socket connections. All the concurrencies don’t +communicate with each other even though they are in the same thread. +.sp +Memslap can create thousands of socket connections, and each +concurrency has tens of socket connections. Each concurrency randomly or +sequentially selects one socket connection from its socket connection pool +to run, so memaslap can ensure each concurrency handles one +socket connection at any given time. Users can specify the number of +concurrency and socket connections of each concurrency according to their +expected workload. +.SS Effective implementation of generating key and value +.sp +In order to improve time efficiency and space efficiency, +memaslap creates a random characters table with 10M characters. All the +suffixes of keys and values are generated from this random characters table. +.sp +Memslap uses the offset in the character table and the length +of the string to identify a string. It can save much memory. +Each key contains two parts, a prefix and a suffix. The prefix is an +uint64_t, 8 bytes. In order to verify the data set before, +memaslap need to ensure each key is unique, so it uses the prefix to identify +a key. The prefix cannot include illegal characters, such as ‘r’, ‘n’, +‘0’ and ‘ ‘. And memaslap has an algorithm to ensure that. +.sp +Memslap doesn’t generate all the objects (key\-value pairs) at +the beginning. It only generates enough objects to fill the task window +(default 10K objects) of each concurrency. Each object has the following +basic information, key prefix, key suffix offset in the character table, key +length, value offset in the character table, and value length. +.sp +In the work process, each concurrency sequentially or randomly selects an +object from the window to do set operation or get operation. At the same +time, each concurrency kicks objects out of its window and adds new object +into it. +.SS Simple but useful task scheduling +.sp +Memslap uses libevent to schedule all the concurrencies of +threads, and each concurrency schedules tasks based on the local task +window. Memslap assumes that if each concurrency keeps the same +key distribution, value distribution and commands distribution, from +outside, memaslap keeps all the distribution as a whole. +Each task window includes a lot of objects, each object stores its basic +information, such as key, value, expire time, and so on. At any time, all +the objects in the window keep the same and fixed key and value +distribution. If an object is overwritten, the value of the object will be +updated. Memslap verifies the data or expire\-time according to +the object information stored in the task window. +.sp +Libevent selects which concurrency to handle based on a specific network +event. Then the concurrency selects which command (get or set) to operate +based on the command distribution. If it needs to kick out an old object and +add a new object, in order to keep the same key and value distribution, the +new object must have the same key length and value length. +.sp +If memcached server has two cache layers (memory and SSD), running +memaslap with different window sizes can get different cache +miss rates. If memaslap adds enough objects into the windows at +the beginning, and the cache of memcached cannot store all the objects +initialized, then memaslap will get some objects from the second +cache layer. It causes the first cache layer to miss. So the user can +specify the window size to get the expected miss rate of the first cache +layer. +.SS Useful implementation of multi\-servers , UDP, TCP, multi\-get and binary protocol +.sp +Because each thread is self\-governed, memaslap can assign +different threads to handle different memcached servers. This is just one of +the ways in which memaslap tests multiple servers. The only +limitation is that the number of servers cannot be greater than the number +of threads. The other way to test multiple servers is for replication +test. Each concurrency has one socket connection to each memcached server. +For the implementation, memaslap can set some objects to one +memcached server, and get these objects from the other servers. +.sp +By default, Memslap does single get. If the user specifies +multi\-get option, memaslap will collect enough get commands and +pack and send the commands together. +.sp +Memslap testss both the ASCII protocol and binary protocol, +but it runs on the ASCII protocol by default. +Memslap by default runs on the TCP protocol, but it also +tests UDP. Because UDP is unreliable, dropped packages and out\-of\-order +packages may occur. Memslap creates a memory buffer to handle +these problems. Memslap tries to read all the response data of +one command from the server and reorders the response data. If some packages +get lost, the waiting timeout mechanism can ensure half\-baked packages will +be discarded and the next command will be sent. +.SH USAGE +.sp +Below are some usage samples: +.sp +memaslap \-s 127.0.0.1:11211 \-S 5s +.sp +memaslap \-s 127.0.0.1:11211 \-t 2m \-v 0.2 \-e 0.05 \-b +.sp +memaslap \-s 127.0.0.1:11211 \-F config \-t 2m \-w 40k \-S 20s \-o 0.2 +.sp +memaslap \-s 127.0.0.1:11211 \-F config \-t 2m \-T 4 \-c 128 \-d 20 \-P 40k +.sp +memaslap \-s 127.0.0.1:11211 \-F config \-t 2m \-d 50 \-a \-n 40 +.sp +memaslap \-s 127.0.0.1:11211,127.0.0.1:11212 \-F config \-t 2m +.sp +memaslap \-s 127.0.0.1:11211,127.0.0.1:11212 \-F config \-t 2m \-p 2 +.sp +The user must specify one server at least to run memaslap. The +rest of the parameters have default values, as shown below: +.sp +Thread number = 1 Concurrency = 16 +.sp +Run time = 600 seconds Configuration file = NULL +.sp +Key size = 64 Value size = 1024 +.sp +Get/set = 9:1 Window size = 10k +.sp +Execute number = 0 Single get = true +.sp +Multi\-get = false Number of sockets of each concurrency = 1 +.sp +Reconnect = false Data verification = false +.sp +Expire\-time verification = false ASCII protocol = true +.sp +Binary protocol = false Dumping statistic information +.sp +periodically = false +.sp +Overwrite proportion = 0% UDP = false +.sp +TCP = true Limit throughput = false +.sp +Facebook test = false Replication test = false +.SS Key size, value size and command distribution. +.sp +All the distributions are read from the configuration file specified by user +with “—cfg_cmd” option. If the user does not specify a configuration file, +memaslap will run with the default distribution (key size = 64, +value size = 1024, get/set = 9:1). For information on how to edit the +configuration file, refer to the “Configuration File” section. +.sp +The minimum key size is 16 bytes; the maximum key size is 250 bytes. The +precision of proportion is 0.001. The proportion of distribution will be +rounded to 3 decimal places. +.sp +The minimum value size is 1 bytes; the maximum value size is 1M bytes. The +precision of proportion is 0.001. The proportion of distribution will be +rounded to 3 decimal places. +Currently, memaslap only testss set and get commands. And it +testss 100% set and 100% get. For 100% get, it will preset some objects to +the server. +.SS Multi\-thread and concurrency +.sp +The high performance of memaslap benefits from the special +schedule of thread and concurrency. It’s important to specify the proper +number of them. The default number of threads is 1; the default number of +concurrency is 16. The user can use “—threads” and “\-\-concurrency” to +specify these variables. +.sp +If the system tests setting CPU affinity and the number of threads +specified by the user is greater than 1, memaslap will try to +bind each thread to a different CPU core. So if you want to get the best +performance memaslap, it is better to specify the number of +thread equal to the number of CPU cores. The number of threads specified by +the user can also be less or greater than the number of CPU cores. Because +of the limitation of implementation, the number of concurrencies could be +the multiple of the number of threads. +.INDENT 0.0 +.IP 1. 3 +For 8 CPU cores system +.UNINDENT +.sp +For example: +.sp +\-\-threads=2 \-\-concurrency=128 +.sp +\-\-threads=8 \-\-concurrency=128 +.sp +\-\-threads=8 \-\-concurrency=256 +.sp +\-\-threads=12 \-\-concurrency=144 +.INDENT 0.0 +.IP 2. 3 +For 16 CPU cores system +.UNINDENT +.sp +For example: +.sp +\-\-threads=8 \-\-concurrency=128 +.sp +\-\-threads=16 \-\-concurrency=256 +.sp +\-\-threads=16 \-\-concurrency=512 +.sp +\-\-threads=24 \-\-concurrency=288 +.sp +The memaslap performs very well, when +used to test the performance of memcached servers. +Most of the time, the bottleneck is the network or +the server. If for some reason the user wants to +limit the performance of memaslap, there +are two ways to do this: +.sp +Decrease the number of threads and concurrencies. +Use the option “\-\-tps” that memaslap +provides to limit the throughput. This option allows +the user to get the expected throughput. For +example, assume that the maximum throughput is 50 +kops/s for a specific configuration, you can specify +the throughput equal to or less than the maximum +throughput using “\-\-tps” option. +.SS Window size +.sp +Most of the time, the user does not need to specify the window size. The +default window size is 10k. For Schooner Memcached, the user can specify +different window sizes to get different cache miss rates based on the test +case. Memslap testss cache miss rate between 0% and 100%. +If you use this utility to test the performance of Schooner Memcached, you +can specify a proper window size to get the expected cache miss rate. The +formula for calculating window size is as follows: +.sp +Assume that the key size is 128 bytes, and the value size is 2048 bytes, and +concurrency=128. +.sp +1. Small cache cache_size=1M, 100% cache miss (all data get from SSD). +win_size=10k +.INDENT 0.0 +.IP 2. 3 +cache_size=4G +.UNINDENT +.sp +(1). cache miss rate 0% +.sp +win_size=8k +.sp +(2). cache miss rate 5% +.sp +win_size=11k +.INDENT 0.0 +.IP 3. 3 +cache_size=16G +.UNINDENT +.sp +(1). cache miss rate 0% +.sp +win_size=32k +.sp +(2). cache miss +.sp +rate 5% +.sp +win_size=46k +.sp +The formula for calculating window size for cache miss rate 0%: +.sp +cache_size / concurrency / (key_size + value_size) * 0.5 +.sp +The formula for calculating window size for cache miss rate 5%: +.sp +cache_size / concurrency / (key_size + value_size) * 0.7 +.SS Verification +.sp +Memslap testss both data verification and expire\-time +verification. The user can use "\-\-verify=" or "\-v" to specify the proportion +of data verification. In theory, it testss 100% data verification. The +user can use "\-\-exp_verify=" or "\-e" to specify the proportion of +expire\-time verification. In theory, it testss 100% expire\-time +verification. Specify the "\-\-verbose" options to get more detailed error +information. +.sp +For example: \-\-exp_verify=0.01 –verify=0.1 , it means that 1% of the objects +set with expire\-time, 10% of the objects gotten will be verified. If the +objects are gotten, memaslap will verify the expire\-time and +value. +.SS multi\-servers and multi\-config +.sp +Memslap testss multi\-servers based on self\-governed thread. +There is a limitation that the number of servers cannot be greater than the +number of threads. Memslap assigns one thread to handle one +server at least. The user can use the "\-\-servers=" or "\-s" option to specify +multi\-servers. +.sp +For example: +.sp +\-\-servers=10.1.1.1:11211,10.1.1.2:11212,10.1.1.3:11213 \-\-threads=6 \-\-concurrency=36 +.sp +The above command means that there are 6 threads, with each thread having 6 +concurrencies and that threads 0 and 3 handle server 0 (10.1.1.1); threads 1 +and 4 handle server 1 (10.1.1.2); and thread 2 and 5 handle server 2 +(10.1.1.3). +.sp +All the threads and concurrencies in memaslap are self\-governed. +.sp +So is memaslap. The user can start up several +memaslap instances. The user can run memaslap on different client +machines to communicate with the same memcached server at the same. It is +recommended that the user start different memaslap on different +machines using the same configuration. +.SS Run with execute number mode or time mode +.sp +The default memaslap runs with time mode. The default run time +is 10 minutes. If it times out, memaslap will exit. Do not +specify both execute number mode and time mode at the same time; just +specify one instead. +.sp +For example: +.sp +\-\-time=30s (It means the test will run 30 seconds.) +.sp +\-\-execute_number=100000 (It means that after running 100000 commands, the test will exit.) +.SS Dump statistic information periodically. +.sp +The user can use "\-\-stat_freq=" or "\-S" to specify the frequency. +.sp +For example: +.sp +\-\-stat_freq=20s +.sp +Memslap will dump the statistics of the commands (get and set) at the frequency of every 20 +seconds. +.sp +For more information on the format of dumping statistic information, refer to “Format of Output” section. +.SS Multi\-get +.sp +The user can use "\-\-division=" or "\-d" to specify multi\-get keys count. +Memslap by default does single get with TCP. Memslap also testss data +verification and expire\-time verification for multi\-get. +.sp +Memslap testss multi\-get with both TCP and UDP. Because of +the different implementation of the ASCII protocol and binary protocol, +there are some differences between the two. For the ASCII protocol, +memaslap sends one “multi\-get” to the server once. For the +binary protocol, memaslap sends several single get commands +together as “multi\-get” to the server. +.SS UDP and TCP +.sp +Memslap testss both UDP and TCP. For TCP, +memaslap does not reconnect the memcached server if socket connections are +lost. If all the socket connections are lost or memcached server crashes, +memaslap will exit. If the user specifies the “\-\-reconnect” +option when socket connections are lost, it will reconnect them. +.sp +User can use “\-\-udp” to enable the UDP feature, but UDP comes with some +limitations: +.sp +UDP cannot set data more than 1400 bytes. +.sp +UDP is not testsed by the binary protocol because the binary protocol of +memcached does not tests that. +.sp +UDP doesn’t tests reconnection. +.SS Facebook test +.sp +Set data with TCP and multi\-get with UDP. Specify the following options: +.sp +"\-\-facebook \-\-division=50" +.sp +If you want to create thousands of TCP connections, specify the +.sp +"\-\-conn_sock=" option. +.sp +For example: \-\-facebook \-\-division=50 \-\-conn_sock=200 +.sp +The above command means that memaslap will do facebook test, +each concurrency has 200 socket TCP connections and one UDP socket. +.sp +Memslap sets objects with the TCP socket, and multi\-gets 50 +objects once with the UDP socket. +.sp +If you specify "\-\-division=50", the key size must be less that 25 bytes +because the UDP packet size is 1400 bytes. +.SS Replication test +.sp +For replication test, the user must specify at least two memcached servers. +The user can use “—rep_write=” option to enable feature. +.sp +For example: +.sp +\-\-servers=10.1.1.1:11211,10.1.1.2:11212 –rep_write=2 +.sp +The above command means that there are 2 replication memcached servers, +memaslap will set objects to both server 0 and server 1, get +objects which are set to server 0 before from server 1, and also get objects +which are set to server 1 before from server 0. If server 0 crashes, +memaslap will only get objects from server 1. If server 0 comes +back to life again, memaslap will reconnect server 0. If both +server 0 and server 1 crash, memaslap will exit. +.SS Supports thousands of TCP connections +.sp +Start memaslap with "\-\-conn_sock=" or "\-n" to enable this +feature. Make sure that your system can tests opening thousands of files +and creating thousands of sockets. However, this feature does not tests +reconnection if sockets disconnect. +.sp +For example: +.sp +\-\-threads=8 \-\-concurrency=128 \-\-conn_sock=128 +.sp +The above command means that memaslap starts up 8 threads, each +thread has 16 concurrencies, each concurrency has 128 TCP socket +connections, and the total number of TCP socket connections is 128 * 128 = +16384. +.SS Supports binary protocol +.sp +Start memaslap with "\-\-binary" or "\-B" options to enable this +feature. It testss all the above features except UDP, because the latest +memcached 1.3.3 does not implement binary UDP protocol. +.sp +For example: +.sp +\-\-binary +.sp +Since memcached 1.3.3 doesn\(aqt implement binary UDP protocol, +memaslap does not tests UDP. In addition, memcached 1.3.3 does not tests +multi\-get. If you specify "\-\-division=50" option, it just sends 50 get +commands together as “mulit\-get” to the server. +.SH CONFIGURATION FILE +.sp +This section describes the format of the configuration file. By default +when no configuration file is specified memaslap reads the default +one located at ~/.memaslap.cnf. +.sp +Below is a sample configuration file: +.sp +.nf +.ft C +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +#comments should start with \(aq#\(aq +#key +#start_len end_len proportion +# +#key length range from start_len to end_len +#start_len must be equal to or greater than 16 +#end_len must be equal to or less than 250 +#start_len must be equal to or greater than end_len +#memaslap will generate keys according to the key range +#proportion: indicates keys generated from one range accounts for the total +generated keys +# +#example1: key range 16~100 accounts for 80% +# key range 101~200 accounts for 10% +# key range 201~250 accounts for 10% +# total should be 1 (0.8+0.1+0.1 = 1) +# +# 16 100 0.8 +# 101 200 0.1 +# 201 249 0.1 +# +#example2: all keys length are 128 bytes +# +# 128 128 1 +key +128 128 1 +#value +#start_len end_len proportion +# +#value length range from start_len to end_len +#start_len must be equal to or greater than 1 +#end_len must be equal to or less than 1M +#start_len must be equal to or greater than end_len +#memaslap will generate values according to the value range +#proportion: indicates values generated from one range accounts for the +total generated values +# +#example1: value range 1~1000 accounts for 80% +# value range 1001~10000 accounts for 10% +# value range 10001~100000 accounts for 10% +# total should be 1 (0.8+0.1+0.1 = 1) +# +# 1 1000 0.8 +# 1001 10000 0.1 +# 10001 100000 0.1 +# +#example2: all value length are 128 bytes +# +# 128 128 1 +value +2048 2048 1 +#cmd +#cmd_type cmd_proportion +# +#currently memaslap only testss get and set command. +# +#cmd_type +#set 0 +#get 1 +# +#example: set command accounts for 50% +# get command accounts for 50% +# total should be 1 (0.5+0.5 = 1) +# +# cmd +# 0 0.5 +# 1 0.5 +cmd +0 0.1 +1.0 0.9 +.ft P +.fi +.SH FORMAT OF OUTPUT +.sp +At the beginning, memaslap displays some configuration information as follows: +.sp +servers : 127.0.0.1:11211 +.sp +threads count: 1 +.sp +concurrency: 16 +.sp +run time: 20s +.sp +windows size: 10k +.sp +set proportion: set_prop=0.10 +.sp +get proportion: get_prop=0.90 +.SS Where +.sp +servers : "servers" +.INDENT 0.0 +.INDENT 3.5 +The servers used by memaslap. +.UNINDENT +.UNINDENT +.sp +threads count +.INDENT 0.0 +.INDENT 3.5 +The number of threads memaslap runs with. +.UNINDENT +.UNINDENT +.sp +concurrency +.INDENT 0.0 +.INDENT 3.5 +The number of concurrencies memaslap runs with. +.UNINDENT +.UNINDENT +.sp +run time +.INDENT 0.0 +.INDENT 3.5 +How long to run memaslap. +.UNINDENT +.UNINDENT +.sp +windows size +.INDENT 0.0 +.INDENT 3.5 +The task window size of each concurrency. +.UNINDENT +.UNINDENT +.sp +set proportion +.INDENT 0.0 +.INDENT 3.5 +The proportion of set command. +.UNINDENT +.UNINDENT +.sp +get proportion +.INDENT 0.0 +.INDENT 3.5 +The proportion of get command. +.UNINDENT +.UNINDENT +.sp +The output of dynamic statistics is something like this: +.sp +.nf +.ft C +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +Get Statistics +Type Time(s) Ops TPS(ops/s) Net(M/s) Get_miss Min(us) Max(us) +Avg(us) Std_dev Geo_dist +Period 5 345826 69165 65.3 0 27 2198 203 +95.43 177.29 +Global 20 1257935 62896 71.8 0 26 3791 224 +117.79 192.60 + + +Set Statistics +Type Time(s) Ops TPS(ops/s) Net(M/s) Get_miss Min(us) Max(us) +Avg(us) Std_dev Geo_dist +Period 5 38425 7685 7.3 0 42 628 240 +88.05 220.21 +Global 20 139780 6989 8.0 0 37 3790 253 +117.93 224.83 + + +Total Statistics +Type Time(s) Ops TPS(ops/s) Net(M/s) Get_miss Min(us) Max(us) +Avg(us) Std_dev Geo_dist +Period 5 384252 76850 72.5 0 27 2198 207 +94.72 181.18 +Global 20 1397720 69886 79.7 0 26 3791 227 +117.93 195.60 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.ft P +.fi +.SS Where +.sp +Get Statistics +.INDENT 0.0 +.INDENT 3.5 +Statistics information of get command +.UNINDENT +.UNINDENT +.sp +Set Statistics +.INDENT 0.0 +.INDENT 3.5 +Statistics information of set command +.UNINDENT +.UNINDENT +.sp +Total Statistics +.INDENT 0.0 +.INDENT 3.5 +Statistics information of both get and set command +.UNINDENT +.UNINDENT +.sp +Period +.INDENT 0.0 +.INDENT 3.5 +Result within a period +.UNINDENT +.UNINDENT +.sp +Global +.INDENT 0.0 +.INDENT 3.5 +Accumulated results +.UNINDENT +.UNINDENT +.sp +Ops +.INDENT 0.0 +.INDENT 3.5 +Total operations +.UNINDENT +.UNINDENT +.sp +TPS +.INDENT 0.0 +.INDENT 3.5 +Throughput, operations/second +.UNINDENT +.UNINDENT +.sp +Net +.INDENT 0.0 +.INDENT 3.5 +The rate of network +.UNINDENT +.UNINDENT +.sp +Get_miss +.INDENT 0.0 +.INDENT 3.5 +How many objects can’t be gotten +.UNINDENT +.UNINDENT +.sp +Min +.INDENT 0.0 +.INDENT 3.5 +The minimum response time +.UNINDENT +.UNINDENT +.sp +Max +.INDENT 0.0 +.INDENT 3.5 +The maximum response time +.UNINDENT +.UNINDENT +.sp +Avg: +.INDENT 0.0 +.INDENT 3.5 +The average response time +.UNINDENT +.UNINDENT +.sp +Std_dev +.INDENT 0.0 +.INDENT 3.5 +Standard deviation of response time +.UNINDENT +.UNINDENT +.sp +Geo_dist +.INDENT 0.0 +.INDENT 3.5 +Geometric distribution based on natural exponential function +.UNINDENT +.UNINDENT +.sp +At the end, memaslap will output something like this: +.sp +.nf +.ft C +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +Get Statistics (1257956 events) + Min: 26 + Max: 3791 + Avg: 224 + Geo: 192.60 + Std: 116.23 + Log2 Dist: + 4: 0 10 84490 215345 + 8: 484890 459823 12543 824 + 12: 31 + + Set Statistics (139782 events) + Min: 37 + Max: 3790 + Avg: 253 + Geo: 224.84 + Std: 116.83 + Log2 Dist: + 4: 0 0 4200 16988 + 8: 50784 65574 2064 167 + 12: 5 + + Total Statistics (1397738 events) + Min: 26 + Max: 3791 + Avg: 227 + Geo: 195.60 + Std: 116.60 + Log2 Dist: + 4: 0 10 88690 232333 + 8: 535674 525397 14607 991 + 12: 36 + +cmd_get: 1257969 +cmd_set: 139785 +get_misses: 0 +verify_misses: 0 +verify_failed: 0 +expired_get: 0 +unexpired_unget: 0 +written_bytes: 242516030 +read_bytes: 1003702556 +object_bytes: 152086080 +packet_disorder: 0 +packet_drop: 0 +udp_timeout: 0 + +Run time: 20.0s Ops: 1397754 TPS: 69817 Net_rate: 59.4M/s +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.ft P +.fi +.SS Where +.sp +Get Statistics +.INDENT 0.0 +.INDENT 3.5 +Get statistics of response time +.UNINDENT +.UNINDENT +.sp +Set Statistics +.INDENT 0.0 +.INDENT 3.5 +Set statistics of response time +.UNINDENT +.UNINDENT +.sp +Total Statistics +.INDENT 0.0 +.INDENT 3.5 +Both get and set statistics of response time +.UNINDENT +.UNINDENT +.sp +Min +.INDENT 0.0 +.INDENT 3.5 +The accumulated and minimum response time +.UNINDENT +.UNINDENT +.sp +Max +.INDENT 0.0 +.INDENT 3.5 +The accumulated and maximum response time +.UNINDENT +.UNINDENT +.sp +Avg +.INDENT 0.0 +.INDENT 3.5 +The accumulated and average response time +.UNINDENT +.UNINDENT +.sp +Std +.INDENT 0.0 +.INDENT 3.5 +Standard deviation of response time +.UNINDENT +.UNINDENT +.sp +Log2 Dist +.INDENT 0.0 +.INDENT 3.5 +Geometric distribution based on logarithm 2 +.UNINDENT +.UNINDENT +.sp +cmd_get +.INDENT 0.0 +.INDENT 3.5 +Total get commands done +.UNINDENT +.UNINDENT +.sp +cmd_set +.INDENT 0.0 +.INDENT 3.5 +Total set commands done +.UNINDENT +.UNINDENT +.sp +get_misses +.INDENT 0.0 +.INDENT 3.5 +How many objects can’t be gotten from server +.UNINDENT +.UNINDENT +.sp +verify_misses +.INDENT 0.0 +.INDENT 3.5 +How many objects need to verify but can’t get them +.UNINDENT +.UNINDENT +.sp +verify_failed +.INDENT 0.0 +.INDENT 3.5 +How many objects with insistent value +.UNINDENT +.UNINDENT +.sp +expired_get +.INDENT 0.0 +.INDENT 3.5 +How many objects are expired but we get them +.UNINDENT +.UNINDENT +.sp +unexpired_unget +.INDENT 0.0 +.INDENT 3.5 +How many objects are unexpired but we can’t get them +.UNINDENT +.UNINDENT +.sp +written_bytes +.INDENT 0.0 +.INDENT 3.5 +Total written bytes +.UNINDENT +.UNINDENT +.sp +read_bytes +.INDENT 0.0 +.INDENT 3.5 +Total read bytes +.UNINDENT +.UNINDENT +.sp +object_bytes +.INDENT 0.0 +.INDENT 3.5 +Total object bytes +.UNINDENT +.UNINDENT +.sp +packet_disorder +.INDENT 0.0 +.INDENT 3.5 +How many UDP packages are disorder +.UNINDENT +.UNINDENT +.sp +packet_drop +.INDENT 0.0 +.INDENT 3.5 +How many UDP packages are lost +.UNINDENT +.UNINDENT +.sp +udp_timeout +.INDENT 0.0 +.INDENT 3.5 +How many times UDP time out happen +.UNINDENT +.UNINDENT +.sp +Run time +.INDENT 0.0 +.INDENT 3.5 +Total run time +.UNINDENT +.UNINDENT +.sp +Ops +.INDENT 0.0 +.INDENT 3.5 +Total operations +.UNINDENT +.UNINDENT +.sp +TPS +.INDENT 0.0 +.INDENT 3.5 +Throughput, operations/second +.UNINDENT +.UNINDENT +.sp +Net_rate +.INDENT 0.0 +.INDENT 3.5 +The average rate of network +.UNINDENT +.UNINDENT +.SH OPTIONS +.INDENT 0.0 +.TP +.B \-s, \-\-servers= +List one or more servers to connect. Servers count must be less than +threads count. e.g.: \-\-servers=localhost:1234,localhost:11211 +.TP +.B \-T, \-\-threads= +Number of threads to startup, better equal to CPU numbers. Default 8. +.TP +.B \-c, \-\-concurrency= +Number of concurrency to simulate with load. Default 128. +.TP +.B \-n, \-\-conn_sock= +Number of TCP socks per concurrency. Default 1. +.TP +.B \-x, \-\-execute_number= +Number of operations(get and set) to execute for the +given test. Default 1000000. +.TP +.B \-t, \-\-time= +How long the test to run, suffix: s\-seconds, m\-minutes, h\-hours, +d\-days e.g.: \-\-time=2h. +.TP +.B \-F, \-\-cfg_cmd= +Load the configure file to get command,key and value distribution list. +.TP +.B \-w, \-\-win_size= +Task window size of each concurrency, suffix: K, M e.g.: \-\-win_size=10k. +Default 10k. +.TP +.B \-X, \-\-fixed_size= +Fixed length of value. +.TP +.B \-v, \-\-verify= +The proportion of date verification, e.g.: \-\-verify=0.01 +.TP +.B \-d, \-\-division= +Number of keys to multi\-get once. Default 1, means single get. +.TP +.B \-S, \-\-stat_freq= +Frequency of dumping statistic information. suffix: s\-seconds, +m\-minutes, e.g.: \-\-resp_freq=10s. +.TP +.B \-e, \-\-exp_verify= +The proportion of objects with expire time, e.g.: \-\-exp_verify=0.01. +Default no object with expire time +.TP +.B \-o, \-\-overwrite= +The proportion of objects need overwrite, e.g.: \-\-overwrite=0.01. +Default never overwrite object. +.UNINDENT +.INDENT 0.0 +.TP +.B \-R, \-\-reconnect +Reconnect tests, when connection is closed it will be reconnected. +.TP +.B \-U, \-\-udp +UDP tests, default memaslap uses TCP, TCP port and UDP port of +server must be same. +.TP +.B \-a, \-\-facebook +Whether it enables facebook test feature, set with TCP and multi\-get with UDP. +.TP +.B \-B, \-\-binary +Whether it enables binary protocol. Default with ASCII protocol. +.UNINDENT +.INDENT 0.0 +.TP +.B \-P, \-\-tps= +Expected throughput, suffix: K, e.g.: \-\-tps=10k. +.TP +.B \-p, \-\-rep_write= +The first nth servers can write data, e.g.: \-\-rep_write=2. +.UNINDENT +.INDENT 0.0 +.TP +.B \-b, \-\-verbose +Whether it outputs detailed information when verification fails. +.TP +.B \-h, \-\-help +Display this message and then exit. +.TP +.B \-V, \-\-version +Display the version of the application and then exit. +.UNINDENT +.SH EXAMPLES +.sp +memaslap \-s 127.0.0.1:11211 \-S 5s +.sp +memaslap \-s 127.0.0.1:11211 \-t 2m \-v 0.2 \-e 0.05 \-b +.sp +memaslap \-s 127.0.0.1:11211 \-F config \-t 2m \-w 40k \-S 20s \-o 0.2 +.sp +memaslap \-s 127.0.0.1:11211 \-F config \-t 2m \-T 4 \-c 128 \-d 20 \-P 40k +.sp +memaslap \-s 127.0.0.1:11211 \-F config \-t 2m \-d 50 \-a \-n 40 +.sp +memaslap \-s 127.0.0.1:11211,127.0.0.1:11212 \-F config \-t 2m +.sp +memaslap \-s 127.0.0.1:11211,127.0.0.1:11212 \-F config \-t 2m \-p 2 +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHORS +.sp +Mingqiang Zhuang <\fI\%mingqiangzhuang@hengtiansoft.com\fP> (Schooner Technolgy) +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached.3 index fa77257d,00000000..3e640483 mode 100644,000000..100644 --- a/docs/man/memcached.3 +++ b/docs/man/memcached.3 @@@ -1,299 -1,0 +1,299 @@@ - .TH "MEMCACHED" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_st *memcached(const char\fI\ *string\fP, size_t\fI\ string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t libmemcached_check_configuration(const char\fI\ *option_string\fP, size_t\fI\ length\fP, char\fI\ *error_buffer\fP, size_t\fI\ error_buffer_size\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +Libmemcached implements a custom language for configuring and modifying +servers. By passing in an option string you can generate a \fBmemcached_st\fP object +that you can use in your application directly. +.INDENT 0.0 +.TP +.B \-\-SERVER=:/? +.UNINDENT +.sp +Provide a servername to be used by the client. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1. +.INDENT 0.0 +.TP +.B \-\-SOCKET=/? +.UNINDENT +.sp +Provide a filepath to a UNIX socket file. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1. +.INDENT 0.0 +.TP +.B \-\-VERIFY\-KEY +.UNINDENT +.sp +Verify that keys that are being used fit within the design of the protocol being used. +.INDENT 0.0 +.TP +.B \-\-REMOVE_FAILED_SERVERS +.UNINDENT +.sp +Enable the behavior MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS. +.INDENT 0.0 +.TP +.B \-\-BINARY\-PROTOCOL +.UNINDENT +.sp +Force all connections to use the binary protocol. +.INDENT 0.0 +.TP +.B \-\-BUFFER\-REQUESTS +.UNINDENT +.sp +Enable MEMCACHED_BEHAVIOR_BUFFER_REQUESTS. +.INDENT 0.0 +.TP +.B \-\-CONFIGURE\-FILE= +.UNINDENT +.sp +Provide a configuration file to be used to load requests. Beware that by using a configuration file libmemcached will reset memcached_st based on information only contained in the file. +.INDENT 0.0 +.TP +.B \-\-CONNECT\-TIMEOUT= +.UNINDENT +.sp +Enable MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT. +.INDENT 0.0 +.TP +.B \-\-DISTRIBUTION= +.UNINDENT +.sp +Set the distribution model used by the client. See :manpage:\(ga\(ga for more details. +.INDENT 0.0 +.TP +.B \-\-HASH= +.UNINDENT +.sp +Set the hashing alogrthm used for placing keys on servers. +.INDENT 0.0 +.TP +.B \-\-HASH\-WITH\-NAMESPACE +.UNINDENT +.sp +When enabled the prefix key will be added to the key when determining which +server to store the data in. +.INDENT 0.0 +.TP +.B \-\-NOREPLY +.UNINDENT +.sp +Enable "no reply" for all calls that support this. It is highly recommended +that you use this option with the binary protocol only. +.INDENT 0.0 +.TP +.B \-\-NUMBER\-OF\-REPLICAS= +.UNINDENT +.sp +Set the nummber of servers that keys will be replicated to. +.INDENT 0.0 +.TP +.B \-\-RANDOMIZE\-REPLICA\-READ +.UNINDENT +.sp +Select randomly the server within the replication pool to read from. +.INDENT 0.0 +.TP +.B \-\-SORT\-HOSTS +.UNINDENT +.sp +When adding new servers always calculate their distribution based on sorted naming order. +.INDENT 0.0 +.TP +.B \-\-SUPPORT\-CAS +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SUPPORT_CAS +.INDENT 0.0 +.TP +.B \-\-USE\-UDP +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_USE_UDP +.INDENT 0.0 +.TP +.B \-\-NAMESPACE= +.UNINDENT +.sp +A namespace is a container that provides context for keys, only other +requests that know the namespace can access these values. This is +accomplished by prepending the namespace value to all keys. +.SS Mecached Pool Options: +.INDENT 0.0 +.TP +.B \-\-POOL\-MIN +.UNINDENT +.sp +Initial size of pool. +.INDENT 0.0 +.TP +.B \-\-POOL\-MAX +.UNINDENT +.sp +Maximize size of the pool. +.SS I/O Options: +.INDENT 0.0 +.TP +.B \-\-TCP\-NODELAY +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_TCP_NODELAY +.INDENT 0.0 +.TP +.B \-\-TCP\-KEEPALIVE +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_TCP_KEEPALIVE +.INDENT 0.0 +.TP +.B \-\-RETRY\-TIMEOUT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_RETRY_TIMEOUT +.INDENT 0.0 +.TP +.B \-\-SERVER\-FAILURE\-LIMIT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.INDENT 0.0 +.TP +.B \-\-SND\-TIMEOUT= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SND_TIMEOUT +.INDENT 0.0 +.TP +.B \-\-SOCKET\-RECV\-SIZE= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE +.INDENT 0.0 +.TP +.B \-\-SOCKET\-SEND\-SIZE= +.UNINDENT +.sp +See \fImemcached_behavior_set(3)\fP for MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE +.INDENT 0.0 +.TP +.B \-\-POLL\-TIMEOUT= +.UNINDENT +.sp +That sets the value of the timeout used by :manpage: \fIpoll()\fP. +.INDENT 0.0 +.TP +.B \-\-IO\-BYTES\-WATERMARK= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-IO\-KEY\-PREFETCH= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-IO\-MSG\-WATERMARK= +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-TCP\-KEEPIDLE +.UNINDENT +.INDENT 0.0 +.TP +.B \-\-RCV\-TIMEOUT= +.UNINDENT +.SS Other: +.INDENT 0.0 +.TP +.B INCLUDE +.UNINDENT +.sp +Include a file in configuration. Unlike \-\-CONFIGURE\-FILE= this will not reset memcached_st +.INDENT 0.0 +.TP +.B RESET +.UNINDENT +.sp +Reset memcached_st and continue to process. +.INDENT 0.0 +.TP +.B END +.UNINDENT +.sp +End configutation processing. +.INDENT 0.0 +.TP +.B ERROR +.UNINDENT +.sp +End configutation processing and throw an error. +.SH RETURN +.sp +\fI\%memcached()\fP returns a pointer to the memcached_st that was +created (or initialized). On an allocation failure, it returns NULL. +.SH EXAMPLE +.sp +.nf +.ft C +const char *config_string= "\-\-SERVER=host10.example.com \-\-SERVER=host11.example.com \-\-SERVER=host10.example.com" +memcached_st *memc= memcached(config_string, strlen(config_string); +{ + ... +} +memcached_free(memc); +.ft P +.fi +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_add.3 index ce28da1e,00000000..9f7d76e9 mode 100644,000000..100644 --- a/docs/man/memcached_add.3 +++ b/docs/man/memcached_add.3 @@@ -1,121 -1,0 +1,121 @@@ - .TH "MEMCACHED_ADD" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_ADD" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_add \- Storing and Replacing Data +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_set()\fP, \fBmemcached_add()\fP, and \fBmemcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you ++\fI\%memcached_set()\fP, \fI\%memcached_add()\fP, and \fI\%memcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you +store the object. Keys are currently limited to 250 characters by the +memcached(1) server. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is meant to be used as a bitmap). "flags" is a 4byte space that is stored alongside of the main value. Many sub libraries make use of this field, so in most cases users should avoid making use of it. +.sp - \fBmemcached_set()\fP will write an object to the server. If an object ++\fI\%memcached_set()\fP will write an object to the server. If an object +already exists it will overwrite what is in the server. If the object does not +exist it will be written. If you are using the non\-blocking mode this function +will always return true unless a network error occurs. +.sp - \fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. ++\fI\%memcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. +.sp - \fBmemcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. ++\fI\%memcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. +.sp +\fBmemcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result by +calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) structure. At the point +that this note was written cas is still buggy in memached. Turning on tests - for it in libmemcached(3) is optional. Please see memcached_set() for ++for it in libmemcached(3) is optional. Please see memcached_set for +information on how to do this. +.sp - \fBmemcached_set_by_key()\fP, \fBmemcached_add_by_key()\fP, and \fBmemcached_replace_by_key()\fP methods all behave in a similar method as the non ++\fI\%memcached_set_by_key()\fP, \fI\%memcached_add_by_key()\fP, and \fI\%memcached_replace_by_key()\fP methods all behave in a similar method as the non +key methods. The difference is that they use their group_key parameter to map +objects to particular servers. +.sp - If you are looking for performance, \fBmemcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. ++If you are looking for performance, \fI\%memcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. +The reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user supplied data is less than 1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, \fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, flags and expiry combined may not +exceed 1368 bytes. When running with the ASCII protocol, the exact limit fluctuates depending on which function is being executed and whether the function is a cas operation or not. For non\-cas ASCII set operations, there are at least +1335 bytes available to split among the key, key_prefix, and value; for cas +ASCII operations there are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, +exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable string. +.sp - For \fBmemcached_replace()\fP and \fBmemcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. ++For \fI\%memcached_replace()\fP and \fI\%memcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_prepend(3)\fP \fImemcached_cas(3)\fP \fImemcached_append(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_add_by_key.3 index b1d34e06,00000000..8cf26f5a mode 100644,000000..100644 --- a/docs/man/memcached_add_by_key.3 +++ b/docs/man/memcached_add_by_key.3 @@@ -1,121 -1,0 +1,121 @@@ - .TH "MEMCACHED_ADD_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_ADD_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_add_by_key \- Storing and Replacing Data +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_set()\fP, \fBmemcached_add()\fP, and \fBmemcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you ++\fI\%memcached_set()\fP, \fI\%memcached_add()\fP, and \fI\%memcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you +store the object. Keys are currently limited to 250 characters by the +memcached(1) server. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is meant to be used as a bitmap). "flags" is a 4byte space that is stored alongside of the main value. Many sub libraries make use of this field, so in most cases users should avoid making use of it. +.sp - \fBmemcached_set()\fP will write an object to the server. If an object ++\fI\%memcached_set()\fP will write an object to the server. If an object +already exists it will overwrite what is in the server. If the object does not +exist it will be written. If you are using the non\-blocking mode this function +will always return true unless a network error occurs. +.sp - \fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. ++\fI\%memcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. +.sp - \fBmemcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. ++\fI\%memcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. +.sp +\fBmemcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result by +calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) structure. At the point +that this note was written cas is still buggy in memached. Turning on tests - for it in libmemcached(3) is optional. Please see memcached_set() for ++for it in libmemcached(3) is optional. Please see memcached_set for +information on how to do this. +.sp - \fBmemcached_set_by_key()\fP, \fBmemcached_add_by_key()\fP, and \fBmemcached_replace_by_key()\fP methods all behave in a similar method as the non ++\fI\%memcached_set_by_key()\fP, \fI\%memcached_add_by_key()\fP, and \fI\%memcached_replace_by_key()\fP methods all behave in a similar method as the non +key methods. The difference is that they use their group_key parameter to map +objects to particular servers. +.sp - If you are looking for performance, \fBmemcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. ++If you are looking for performance, \fI\%memcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. +The reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user supplied data is less than 1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, \fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, flags and expiry combined may not +exceed 1368 bytes. When running with the ASCII protocol, the exact limit fluctuates depending on which function is being executed and whether the function is a cas operation or not. For non\-cas ASCII set operations, there are at least +1335 bytes available to split among the key, key_prefix, and value; for cas +ASCII operations there are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, +exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable string. +.sp - For \fBmemcached_replace()\fP and \fBmemcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. ++For \fI\%memcached_replace()\fP and \fI\%memcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_prepend(3)\fP \fImemcached_cas(3)\fP \fImemcached_append(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_analyze.3 index b40f2ecd,00000000..7b8ca2cd mode 100644,000000..100644 --- a/docs/man/memcached_analyze.3 +++ b/docs/man/memcached_analyze.3 @@@ -1,77 -1,0 +1,81 @@@ - .TH "MEMCACHED_ANALYZE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_ANALYZE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_analyze \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Analyze server information +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_analysis_st * memcached_analyze (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error); ++.B memcached_analysis_st ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B \fI\%memcached_analysis_st\fP * memcached_analyze(memcached_st\fI\ *ptr\fP, memcached_stat_st\fI\ *stat\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.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 - \fBmemcached_analysis_st\fP structure. You are responsible for freeing this structure. ++\fI\%memcached_analysis_st\fP structure. You are responsible for freeing this structure. +.sp - \fBmemcached_analyze()\fP analyzes useful information based on the - provided servers and sets the result to the \fBmemcached_analysis_st\fP ++\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 - A command line tool, \fBmemstat()\fP with the option \fI\-\-analyze\fP, ++A command line tool, \fBmemstat\fP with the option \fImemstat \-\-analyze\fP, +is provided so that you do not have to write an application to use this method. +.SH RETURN +.sp - A pointer to the allocated \fBmemcached_analysis_st\fP structure on ++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 \fBmemcached_return_t\fP value. +.sp - Any method returning a \fBmemcached_analysis_st\fP expects you to free the ++Any method returning a \fI\%memcached_analysis_st\fP expects you to free the +memory allocated for it. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_append.3 index f4408226,00000000..fdb6b27b mode 100644,000000..100644 --- a/docs/man/memcached_append.3 +++ b/docs/man/memcached_append.3 @@@ -1,119 -1,0 +1,119 @@@ - .TH "MEMCACHED_APPEND" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_APPEND" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_append \- Appending to or Prepending to data on the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Appending or Prepending to data on the server +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_return_t memcached_prepend(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_append(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_prepend_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_prepend_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_append_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_append_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_prepend()\fP and memcached_append are used to +modify information on a server. All methods take a key, and its length to +store the object. Keys are currently limited to 250 characters when using +either a version of memcached which is 1.4 or below, or when using the text +protocol. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is +meant to be used as a bitmap). "flags" is a 4byte space that is stored +alongside of the main value. Many sub libraries make use of this field, +so in most cases users should avoid making use of it. +.sp +\fI\%memcached_prepend()\fP places a segment of data before the last piece +of data stored. Currently expiration and key are not used in the server. +.sp +\fI\%memcached_append()\fP places a segment of data at the end of the last +piece of data stored. Currently expiration and key are not used in the server. +.sp - \fBmemcached_prepend_by_key()\fP and - \fBmemcached_append_by_key_by_key()\fP methods both behave in a similar ++\fI\%memcached_prepend_by_key()\fP and ++\fI\%memcached_append_by_key()\fP methods both behave in a similar +method as the non key methods. The difference is that they use their +group_key parameter to map objects to particular servers. +.sp +If you are looking for performance, \fBmemcached_set()\fP with non\-blocking +IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using +these operations with this behavior on, there are limits to the size of the +payload being sent to the server. The reason for these limits is that the +Memcached Server does not allow multi\-datagram requests +and the current server implementation sets a datagram size to 1400 bytes. Due +to protocol overhead, the actual limit of the user supplied data is less than +1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, +\fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, +flags and expiry combined may not exceed 1368 bytes. When running with the +ASCII protocol, the exact limit fluctuates depending on which function is +being executed and whether the function is a cas operation or not. For +non\-cas ASCII set operations, there are at least 1335 bytes available +to split among the key, key_prefix, and value; for cas ASCII operations +there are at least 1318 bytes available to split among the key, key_prefix +and value. If the total size of the command, including overhead, exceeds +1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_set(3)\fP \fImemcached_add(3)\fP \fImemcached_cas(3)\fP \fImemcached_replace(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_append_by_key.3 index 0af9af50,00000000..0d82a355 mode 100644,000000..100644 --- a/docs/man/memcached_append_by_key.3 +++ b/docs/man/memcached_append_by_key.3 @@@ -1,119 -1,0 +1,119 @@@ - .TH "MEMCACHED_APPEND_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_APPEND_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_append_by_key \- Appending to or Prepending to data on the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Appending or Prepending to data on the server +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_return_t memcached_prepend(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_append(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_prepend_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_prepend_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_append_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_append_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_prepend()\fP and memcached_append are used to +modify information on a server. All methods take a key, and its length to +store the object. Keys are currently limited to 250 characters when using +either a version of memcached which is 1.4 or below, or when using the text +protocol. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is +meant to be used as a bitmap). "flags" is a 4byte space that is stored +alongside of the main value. Many sub libraries make use of this field, +so in most cases users should avoid making use of it. +.sp +\fI\%memcached_prepend()\fP places a segment of data before the last piece +of data stored. Currently expiration and key are not used in the server. +.sp +\fI\%memcached_append()\fP places a segment of data at the end of the last +piece of data stored. Currently expiration and key are not used in the server. +.sp - \fBmemcached_prepend_by_key()\fP and - \fBmemcached_append_by_key_by_key()\fP methods both behave in a similar ++\fI\%memcached_prepend_by_key()\fP and ++\fI\%memcached_append_by_key()\fP methods both behave in a similar +method as the non key methods. The difference is that they use their +group_key parameter to map objects to particular servers. +.sp +If you are looking for performance, \fBmemcached_set()\fP with non\-blocking +IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using +these operations with this behavior on, there are limits to the size of the +payload being sent to the server. The reason for these limits is that the +Memcached Server does not allow multi\-datagram requests +and the current server implementation sets a datagram size to 1400 bytes. Due +to protocol overhead, the actual limit of the user supplied data is less than +1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, +\fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, +flags and expiry combined may not exceed 1368 bytes. When running with the +ASCII protocol, the exact limit fluctuates depending on which function is +being executed and whether the function is a cas operation or not. For +non\-cas ASCII set operations, there are at least 1335 bytes available +to split among the key, key_prefix, and value; for cas ASCII operations +there are at least 1318 bytes available to split among the key, key_prefix +and value. If the total size of the command, including overhead, exceeds +1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_set(3)\fP \fImemcached_add(3)\fP \fImemcached_cas(3)\fP \fImemcached_replace(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_auto.3 index 17fad773,00000000..575ddc4f mode 100644,000000..100644 --- a/docs/man/memcached_auto.3 +++ b/docs/man/memcached_auto.3 @@@ -1,124 -1,0 +1,123 @@@ - .TH "MEMCACHED_AUTO" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_AUTO" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_auto \- Incrementing and Decrementing Values +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fImemcached(1)\fP servers have the ability to increment and decrement keys +(overflow and underflow are not detected). This gives you the ability to use +memcached to generate shared sequences of values. +.sp - memcached_increment() takes a key and keylength and increments the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_increment takes a key and keylength and increments the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement() takes a key and keylength and decrements the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_decrement takes a key and keylength and decrements the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_with_initial() takes a key and keylength and increments ++memcached_increment_with_initial takes a key and keylength and increments +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement_with_initial() takes a key and keylength and decrements ++memcached_decrement_with_initial takes a key and keylength and decrements +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_by_key(), memcached_decrement_by_key(), - memcached_increment_with_initial_by_key(), and - memcached_decrement_with_initial_by_key() are master key equivalents of the - above. ++\fI\%memcached_increment_by_key()\fP, \fI\%memcached_decrement_by_key()\fP, ++\fI\%memcached_increment_with_initial_by_key()\fP, and ++\fI\%memcached_decrement_with_initial_by_key()\fP are master key equivalents of the above. +.SH RETURN +.sp - A value of type \fBmemcached_return_t\fP is returned. ++A value of type \fBmemcached_return_t\fP is returned. +On success that value will be \fBMEMCACHED_SUCCESS\fP. - Use memcached_strerror() to translate this value to a printable string. ++Use memcached_strerror to translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_behavior.3 index 1e1a90e4,00000000..09629bb8 mode 100644,000000..100644 --- a/docs/man/memcached_behavior.3 +++ b/docs/man/memcached_behavior.3 @@@ -1,338 -1,0 +1,352 @@@ - .TH "MEMCACHED_BEHAVIOR" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_BEHAVIOR" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_behavior \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manipulate the behavior of a memcached_st structure. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint64_t memcached_behavior_get (memcached_st *ptr, memcached_behavior flag); ++.B memcached_behavior_t +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_behavior_set (memcached_st *ptr, memcached_behavior flag, uint64_t data); ++.B uint64_t memcached_behavior_get(memcached_st\fI\ *ptr\fP, \fI\%memcached_behavior_t\fP\fI\ flag\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_behavior_set(memcached_st\fI\ *ptr\fP, \fI\%memcached_behavior_t\fP\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fIlibmemcached(3)\fP behavior can be modified by using \fBmemcached_behavior_set()\fP. Default behavior is the library strives to be quick and ++\fIlibmemcached(3)\fP behavior can be modified by using \fI\%memcached_behavior_set()\fP. Default behavior is the library strives to be quick and +accurate. Some behavior, while being faster, can also result in not entirely +accurate behavior (for instance, \fBmemcached_set()\fP will always respond +with \fBMEMCACHED_SUCCESS\fP). +.sp - \fBmemcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client. ++\fI\%memcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client. +.sp - \fBmemcached_behavior_set()\fP changes the value of a particular option ++\fI\%memcached_behavior_set()\fP changes the value of a particular option +of the client. It takes both a flag (listed below) and a value. For simple +on or off options you just need to pass in a value of 1. Calls to - \fBmemcached_behavior_set()\fP will flush and reset all connections. ++\fI\%memcached_behavior_set()\fP will flush and reset all connections. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_USE_UDP +.UNINDENT +.sp +Causes \fIlibmemcached(3)\fP to use the UDP transport when communicating +with a memcached server. Not all I/O operations are testsed +when this behavior is enababled. The following operations will return - \fBMEMCACHED_NOT_SUPPORTED\fP when executed with the \fI\%MEMCACHED_BEHAVIOR_USE_UDP\fP enabled: \fBmemcached_version()\fP, \fBmemcached_stat()\fP, \fBmemcached_get()\fP, \fBmemcached_get_by_key()\fP, \fBmemcached_mget()\fP, \fBmemcached_mget_by_key()\fP, \fBmemcached_fetch()\fP, \fBmemcached_fetch_result()\fP, \fBmemcached_value_fetch()\fP. ++\fBMEMCACHED_NOT_SUPPORTED\fP when executed with the ++\fI\%MEMCACHED_BEHAVIOR_USE_UDP\fP enabled: \fBmemcached_version()\fP, ++\fBmemcached_stat()\fP, \fBmemcached_get()\fP, ++\fBmemcached_get_by_key()\fP, \fBmemcached_mget()\fP, ++\fBmemcached_mget_by_key()\fP, \fBmemcached_fetch()\fP, ++\fBmemcached_fetch_result()\fP, \fBmemcached_fetch_execute()\fP. +.sp +All other operations are testsed but are executed in a \(aqfire\-and\-forget\(aq +mode, in which once the client has executed the operation, no attempt +will be made to ensure the operation has been received and acted on by the +server. +.sp +\fIlibmemcached(3)\fP does not allow TCP and UDP servers to be shared +within the same libmemached(3) client \(aqinstance\(aq. An attempt to add a TCP +server when this behavior is enabled will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP, as will attempting to add a UDP server when this behavior has +not been enabled. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NO_BLOCK +.UNINDENT +.sp +Causes \fIlibmemcached(3)\fP to use asychronous IO. This is the fastest +transport available for storage functions. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SND_TIMEOUT +.UNINDENT +.sp +This sets the microsecond behavior of the socket against the SO_SNDTIMEO flag. In cases where you cannot use non\-blocking IO this will allow you to still have timeouts on the sending of data. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RCV_TIMEOUT +.UNINDENT +.sp +This sets the microsecond behavior of the socket against the SO_RCVTIMEO flag. +.sp +In cases where you cannot use non\-blocking IO this will allow you to still have timeouts on the reading of data. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_TCP_NODELAY +.UNINDENT +.sp +Turns on the no\-delay feature for connecting sockets (may be faster in some +environments). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_HASH +.UNINDENT +.sp +Makes the default hashing algorithm for keys use MD5. The value can be set to either \fBMEMCACHED_HASH_DEFAULT\fP, \fBMEMCACHED_HASH_MD5\fP, \fBMEMCACHED_HASH_CRC\fP, \fBMEMCACHED_HASH_FNV1_64\fP, \fBMEMCACHED_HASH_FNV1A_64\fP, \fBMEMCACHED_HASH_FNV1_32\fP, \fBMEMCACHED_HASH_FNV1A_32\fP, \fBMEMCACHED_HASH_JENKINS\fP, \fBMEMCACHED_HASH_HSIEH\fP, and \fBMEMCACHED_HASH_MURMUR\fP. +.sp +Each hash has it\(aqs advantages and it\(aqs weaknesses. If you don\(aqt know or don\(aqt +care, just go with the default. +.sp +Support for \fBMEMCACHED_HASH_HSIEH\fP is a compile time option that is disabled by default. To enable tests for this hashing algorithm, configure and build libmemcached with the \-\-enable\-hash_hsieh. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_DISTRIBUTION +.UNINDENT +.sp +Using this you can enable different means of distributing values to servers. +.sp +The default method is MEMCACHED_DISTRIBUTION_MODULA. You can enable consistent hashing by setting MEMCACHED_DISTRIBUTION_CONSISTENT. Consistent hashing delivers better distribution and allows servers to be added to the cluster with minimal cache losses. Currently MEMCACHED_DISTRIBUTION_CONSISTENT is an alias for the value MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CACHE_LOOKUPS +.UNINDENT +.sp +Deprecated since version 0.46(?): DNS lookups are now always cached until an error occurs with the server. +.sp +Memcached can cache named lookups so that DNS lookups are made only once. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SUPPORT_CAS +.UNINDENT +.sp +Support CAS operations (this is not enabled by default at this point in the server since it imposes a slight performance penalty). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA +.UNINDENT +.sp - Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA and the hash to MEMCACHED_HASH_MD5. ++Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA and ++the hash to \fBMEMCACHED_HASH_MD5\fP. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED +Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA with the weighted tests. and the hash to MEMCACHED_HASH_MD5. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_HASH +.UNINDENT +.sp - Sets the hashing algorithm for host mapping on continuum. The value can be set to either MEMCACHED_HASH_DEFAULT, MEMCACHED_HASH_MD5, MEMCACHED_HASH_CRC, MEMCACHED_HASH_FNV1_64, MEMCACHED_HASH_FNV1A_64, MEMCACHED_HASH_FNV1_32, and MEMCACHED_HASH_FNV1A_32. ++Sets the hashing algorithm for host mapping on continuum. The value can be set ++to either \fBMEMCACHED_HASH_DEFAULT\fP, \fBMEMCACHED_HASH_MD5\fP, ++\fBMEMCACHED_HASH_CRC\fP, \fBMEMCACHED_HASH_FNV1_64\fP, ++\fBMEMCACHED_HASH_FNV1A_64\fP, \fBMEMCACHED_HASH_FNV1_32\fP, and ++\fBMEMCACHED_HASH_FNV1A_32\fP. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_COMPAT +.UNINDENT +.sp +Sets the compatibility mode. The value can be set to either MEMCACHED_KETAMA_COMPAT_LIBMEMCACHED (this is the default) or MEMCACHED_KETAMA_COMPAT_SPY to be compatible with the SPY Memcached client for Java. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_POLL_TIMEOUT +.UNINDENT +.sp - Modify the timeout value that is used by poll(). The default value is \-1. An signed int pointer must be passed to memcached_behavior_set() to change this value. For memcached_behavior_get() a signed int value will be cast and returned as the unsigned long long. ++Modify the timeout value that is used by poll. The default value is \-1. An signed int pointer must be passed to memcached_behavior_set to change this value. For memcached_behavior_get a signed int value will be cast and returned as the unsigned long long. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_USER_DATA +.UNINDENT +.sp +Deprecated since version <: 0.30 +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_BUFFER_REQUESTS +.UNINDENT +.sp +Enabling buffered IO causes commands to "buffer" instead of being sent. Any action that gets data causes this buffer to be be sent to the remote connection. Quiting the connection or closing down the connection will also cause the buffered data to be pushed to the remote connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_VERIFY_KEY +.UNINDENT +.sp +Enabling this will cause \fIlibmemcached(3)\fP to test all keys to verify that they are valid keys. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SORT_HOSTS +.UNINDENT +.sp +Enabling this will cause hosts that are added to be placed in the host list in sorted order. This will defeat consisten hashing. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT +.UNINDENT +.sp +In non\-blocking mode this changes the value of the timeout during socket connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_BINARY_PROTOCOL +.UNINDENT +.sp +Enable the use of the binary protocol. Please note that you cannot toggle this flag on an open connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.UNINDENT +.sp +Set this value to enable the server be removed after continuous MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT times connection failure. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK +.UNINDENT +.sp +Set this value to tune the number of messages that may be sent before libmemcached should start to automatically drain the input queue. Setting this value to high, may cause libmemcached to deadlock (trying to send data, but the send will block because the input buffer in the kernel is full). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK +.UNINDENT +.sp +Set this value to tune the number of bytes that may be sent before libmemcached should start to automatically drain the input queue (need at least 10 IO requests sent without reading the input buffer). Setting this value to high, may cause libmemcached to deadlock (trying to send data, but the send will block because the input buffer in the kernel is full). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH +.UNINDENT +.sp +The binary protocol works a bit different than the textual protocol in that a multiget is implemented as a pipe of single get\-operations which are sent to the server in a chunk. If you are using large multigets from your application, you may improve the latency of the gets by setting this value so you send out the first chunk of requests when you hit the specified limit. It allows the servers to start processing the requests to send the data back while the rest of the requests are created and sent to the server. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NOREPLY +.UNINDENT +.sp +Set this value to specify that you really don\(aqt care about the result from your storage commands (set, add, replace, append, prepend). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS +.UNINDENT +.sp +If you just want "a poor mans HA", you may specify the numbers of replicas libmemcached should store of each item (on different servers). This replication does not dedicate certain memcached servers to store the replicas in, but instead it will store the replicas together with all of the other objects (on the \(aqn\(aq next servers specified in your server list). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ +.UNINDENT +.sp +Allows randomizing the replica reads starting point. Normally the read is done from primary server and in case of miss the read is done from primary + 1, then primary + 2 all the way to \(aqn\(aq replicas. If this option is set on the starting point of the replica reads is randomized between the servers. This allows distributing read load to multiple servers with the expense of more write traffic. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CORK +.UNINDENT +.sp +This open has been deprecated with the behavior now built and used appropriately on selected platforms. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KEEPALIVE +.UNINDENT +.sp +Enable TCP_KEEPALIVE behavior. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KEEPALIVE_IDLE +.UNINDENT +.sp +Specify time, in seconds, to mark a connection as idle. This is only available as an option Linux. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE +.UNINDENT +.sp +Find the current size of SO_SNDBUF. A value of 0 means either an error occured or no hosts were available. It is safe to assume system default if this occurs. If an error occurs you can checked the last cached errno statement to find the specific error. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE +.UNINDENT +.sp +Find the current size of SO_RCVBUF. A value of 0 means either an error occured or no hosts were available. It is safe to assume system default if this occurs. If an error occurs you can checked the last cached errno statement to find the specific error. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.UNINDENT +.sp +Deprecated since version 0.48: See \fI\%MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS\fP +.sp +This number of times a host can have an error before it is disabled. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS +.UNINDENT +.sp +Deprecated since version 0.48: See \fI\%MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS\fP +.sp +If enabled any hosts which have been flagged as disabled will be removed from the list of servers in the memcached_st structure. This must be used in combination with MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS +If enabled any hosts which have been flagged as disabled will be removed from the list of servers in the memcached_st structure. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RETRY_TIMEOUT +.UNINDENT +.sp +When enabled a host which is problematic will only be checked for usage based on the amount of time set by this behavior. The value is in seconds. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY +.UNINDENT +.sp +When enabled the prefix key will be added to the key when determining server +by hash. See \fBMEMCACHED_CALLBACK_NAMESPACE\fP for additional +information. +.SH RETURN +.sp - memcached_behavior_get() returns either the current value of the get, or 0 - or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set() ++memcached_behavior_get returns either the current value of the get, or 0 ++or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set +returns failure or success. +.SH NOTES +.sp - memcached_behavior_set() in version .17 was changed from taking a pointer ++memcached_behavior_set in version .17 was changed from taking a pointer +to data value, to taking a uin64_t. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_behavior_get.3 index ab69c41c,00000000..b85c3ddc mode 100644,000000..100644 --- a/docs/man/memcached_behavior_get.3 +++ b/docs/man/memcached_behavior_get.3 @@@ -1,338 -1,0 +1,352 @@@ - .TH "MEMCACHED_BEHAVIOR_GET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_BEHAVIOR_GET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_behavior_get \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manipulate the behavior of a memcached_st structure. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint64_t memcached_behavior_get (memcached_st *ptr, memcached_behavior flag); ++.B memcached_behavior_t +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_behavior_set (memcached_st *ptr, memcached_behavior flag, uint64_t data); ++.B uint64_t memcached_behavior_get(memcached_st\fI\ *ptr\fP, \fI\%memcached_behavior_t\fP\fI\ flag\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_behavior_set(memcached_st\fI\ *ptr\fP, \fI\%memcached_behavior_t\fP\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fIlibmemcached(3)\fP behavior can be modified by using \fBmemcached_behavior_set()\fP. Default behavior is the library strives to be quick and ++\fIlibmemcached(3)\fP behavior can be modified by using \fI\%memcached_behavior_set()\fP. Default behavior is the library strives to be quick and +accurate. Some behavior, while being faster, can also result in not entirely +accurate behavior (for instance, \fBmemcached_set()\fP will always respond +with \fBMEMCACHED_SUCCESS\fP). +.sp - \fBmemcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client. ++\fI\%memcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client. +.sp - \fBmemcached_behavior_set()\fP changes the value of a particular option ++\fI\%memcached_behavior_set()\fP changes the value of a particular option +of the client. It takes both a flag (listed below) and a value. For simple +on or off options you just need to pass in a value of 1. Calls to - \fBmemcached_behavior_set()\fP will flush and reset all connections. ++\fI\%memcached_behavior_set()\fP will flush and reset all connections. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_USE_UDP +.UNINDENT +.sp +Causes \fIlibmemcached(3)\fP to use the UDP transport when communicating +with a memcached server. Not all I/O operations are testsed +when this behavior is enababled. The following operations will return - \fBMEMCACHED_NOT_SUPPORTED\fP when executed with the \fI\%MEMCACHED_BEHAVIOR_USE_UDP\fP enabled: \fBmemcached_version()\fP, \fBmemcached_stat()\fP, \fBmemcached_get()\fP, \fBmemcached_get_by_key()\fP, \fBmemcached_mget()\fP, \fBmemcached_mget_by_key()\fP, \fBmemcached_fetch()\fP, \fBmemcached_fetch_result()\fP, \fBmemcached_value_fetch()\fP. ++\fBMEMCACHED_NOT_SUPPORTED\fP when executed with the ++\fI\%MEMCACHED_BEHAVIOR_USE_UDP\fP enabled: \fBmemcached_version()\fP, ++\fBmemcached_stat()\fP, \fBmemcached_get()\fP, ++\fBmemcached_get_by_key()\fP, \fBmemcached_mget()\fP, ++\fBmemcached_mget_by_key()\fP, \fBmemcached_fetch()\fP, ++\fBmemcached_fetch_result()\fP, \fBmemcached_fetch_execute()\fP. +.sp +All other operations are testsed but are executed in a \(aqfire\-and\-forget\(aq +mode, in which once the client has executed the operation, no attempt +will be made to ensure the operation has been received and acted on by the +server. +.sp +\fIlibmemcached(3)\fP does not allow TCP and UDP servers to be shared +within the same libmemached(3) client \(aqinstance\(aq. An attempt to add a TCP +server when this behavior is enabled will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP, as will attempting to add a UDP server when this behavior has +not been enabled. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NO_BLOCK +.UNINDENT +.sp +Causes \fIlibmemcached(3)\fP to use asychronous IO. This is the fastest +transport available for storage functions. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SND_TIMEOUT +.UNINDENT +.sp +This sets the microsecond behavior of the socket against the SO_SNDTIMEO flag. In cases where you cannot use non\-blocking IO this will allow you to still have timeouts on the sending of data. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RCV_TIMEOUT +.UNINDENT +.sp +This sets the microsecond behavior of the socket against the SO_RCVTIMEO flag. +.sp +In cases where you cannot use non\-blocking IO this will allow you to still have timeouts on the reading of data. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_TCP_NODELAY +.UNINDENT +.sp +Turns on the no\-delay feature for connecting sockets (may be faster in some +environments). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_HASH +.UNINDENT +.sp +Makes the default hashing algorithm for keys use MD5. The value can be set to either \fBMEMCACHED_HASH_DEFAULT\fP, \fBMEMCACHED_HASH_MD5\fP, \fBMEMCACHED_HASH_CRC\fP, \fBMEMCACHED_HASH_FNV1_64\fP, \fBMEMCACHED_HASH_FNV1A_64\fP, \fBMEMCACHED_HASH_FNV1_32\fP, \fBMEMCACHED_HASH_FNV1A_32\fP, \fBMEMCACHED_HASH_JENKINS\fP, \fBMEMCACHED_HASH_HSIEH\fP, and \fBMEMCACHED_HASH_MURMUR\fP. +.sp +Each hash has it\(aqs advantages and it\(aqs weaknesses. If you don\(aqt know or don\(aqt +care, just go with the default. +.sp +Support for \fBMEMCACHED_HASH_HSIEH\fP is a compile time option that is disabled by default. To enable tests for this hashing algorithm, configure and build libmemcached with the \-\-enable\-hash_hsieh. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_DISTRIBUTION +.UNINDENT +.sp +Using this you can enable different means of distributing values to servers. +.sp +The default method is MEMCACHED_DISTRIBUTION_MODULA. You can enable consistent hashing by setting MEMCACHED_DISTRIBUTION_CONSISTENT. Consistent hashing delivers better distribution and allows servers to be added to the cluster with minimal cache losses. Currently MEMCACHED_DISTRIBUTION_CONSISTENT is an alias for the value MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CACHE_LOOKUPS +.UNINDENT +.sp +Deprecated since version 0.46(?): DNS lookups are now always cached until an error occurs with the server. +.sp +Memcached can cache named lookups so that DNS lookups are made only once. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SUPPORT_CAS +.UNINDENT +.sp +Support CAS operations (this is not enabled by default at this point in the server since it imposes a slight performance penalty). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA +.UNINDENT +.sp - Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA and the hash to MEMCACHED_HASH_MD5. ++Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA and ++the hash to \fBMEMCACHED_HASH_MD5\fP. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED +Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA with the weighted tests. and the hash to MEMCACHED_HASH_MD5. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_HASH +.UNINDENT +.sp - Sets the hashing algorithm for host mapping on continuum. The value can be set to either MEMCACHED_HASH_DEFAULT, MEMCACHED_HASH_MD5, MEMCACHED_HASH_CRC, MEMCACHED_HASH_FNV1_64, MEMCACHED_HASH_FNV1A_64, MEMCACHED_HASH_FNV1_32, and MEMCACHED_HASH_FNV1A_32. ++Sets the hashing algorithm for host mapping on continuum. The value can be set ++to either \fBMEMCACHED_HASH_DEFAULT\fP, \fBMEMCACHED_HASH_MD5\fP, ++\fBMEMCACHED_HASH_CRC\fP, \fBMEMCACHED_HASH_FNV1_64\fP, ++\fBMEMCACHED_HASH_FNV1A_64\fP, \fBMEMCACHED_HASH_FNV1_32\fP, and ++\fBMEMCACHED_HASH_FNV1A_32\fP. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_COMPAT +.UNINDENT +.sp +Sets the compatibility mode. The value can be set to either MEMCACHED_KETAMA_COMPAT_LIBMEMCACHED (this is the default) or MEMCACHED_KETAMA_COMPAT_SPY to be compatible with the SPY Memcached client for Java. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_POLL_TIMEOUT +.UNINDENT +.sp - Modify the timeout value that is used by poll(). The default value is \-1. An signed int pointer must be passed to memcached_behavior_set() to change this value. For memcached_behavior_get() a signed int value will be cast and returned as the unsigned long long. ++Modify the timeout value that is used by poll. The default value is \-1. An signed int pointer must be passed to memcached_behavior_set to change this value. For memcached_behavior_get a signed int value will be cast and returned as the unsigned long long. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_USER_DATA +.UNINDENT +.sp +Deprecated since version <: 0.30 +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_BUFFER_REQUESTS +.UNINDENT +.sp +Enabling buffered IO causes commands to "buffer" instead of being sent. Any action that gets data causes this buffer to be be sent to the remote connection. Quiting the connection or closing down the connection will also cause the buffered data to be pushed to the remote connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_VERIFY_KEY +.UNINDENT +.sp +Enabling this will cause \fIlibmemcached(3)\fP to test all keys to verify that they are valid keys. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SORT_HOSTS +.UNINDENT +.sp +Enabling this will cause hosts that are added to be placed in the host list in sorted order. This will defeat consisten hashing. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT +.UNINDENT +.sp +In non\-blocking mode this changes the value of the timeout during socket connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_BINARY_PROTOCOL +.UNINDENT +.sp +Enable the use of the binary protocol. Please note that you cannot toggle this flag on an open connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.UNINDENT +.sp +Set this value to enable the server be removed after continuous MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT times connection failure. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK +.UNINDENT +.sp +Set this value to tune the number of messages that may be sent before libmemcached should start to automatically drain the input queue. Setting this value to high, may cause libmemcached to deadlock (trying to send data, but the send will block because the input buffer in the kernel is full). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK +.UNINDENT +.sp +Set this value to tune the number of bytes that may be sent before libmemcached should start to automatically drain the input queue (need at least 10 IO requests sent without reading the input buffer). Setting this value to high, may cause libmemcached to deadlock (trying to send data, but the send will block because the input buffer in the kernel is full). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH +.UNINDENT +.sp +The binary protocol works a bit different than the textual protocol in that a multiget is implemented as a pipe of single get\-operations which are sent to the server in a chunk. If you are using large multigets from your application, you may improve the latency of the gets by setting this value so you send out the first chunk of requests when you hit the specified limit. It allows the servers to start processing the requests to send the data back while the rest of the requests are created and sent to the server. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NOREPLY +.UNINDENT +.sp +Set this value to specify that you really don\(aqt care about the result from your storage commands (set, add, replace, append, prepend). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS +.UNINDENT +.sp +If you just want "a poor mans HA", you may specify the numbers of replicas libmemcached should store of each item (on different servers). This replication does not dedicate certain memcached servers to store the replicas in, but instead it will store the replicas together with all of the other objects (on the \(aqn\(aq next servers specified in your server list). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ +.UNINDENT +.sp +Allows randomizing the replica reads starting point. Normally the read is done from primary server and in case of miss the read is done from primary + 1, then primary + 2 all the way to \(aqn\(aq replicas. If this option is set on the starting point of the replica reads is randomized between the servers. This allows distributing read load to multiple servers with the expense of more write traffic. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CORK +.UNINDENT +.sp +This open has been deprecated with the behavior now built and used appropriately on selected platforms. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KEEPALIVE +.UNINDENT +.sp +Enable TCP_KEEPALIVE behavior. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KEEPALIVE_IDLE +.UNINDENT +.sp +Specify time, in seconds, to mark a connection as idle. This is only available as an option Linux. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE +.UNINDENT +.sp +Find the current size of SO_SNDBUF. A value of 0 means either an error occured or no hosts were available. It is safe to assume system default if this occurs. If an error occurs you can checked the last cached errno statement to find the specific error. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE +.UNINDENT +.sp +Find the current size of SO_RCVBUF. A value of 0 means either an error occured or no hosts were available. It is safe to assume system default if this occurs. If an error occurs you can checked the last cached errno statement to find the specific error. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.UNINDENT +.sp +Deprecated since version 0.48: See \fI\%MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS\fP +.sp +This number of times a host can have an error before it is disabled. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS +.UNINDENT +.sp +Deprecated since version 0.48: See \fI\%MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS\fP +.sp +If enabled any hosts which have been flagged as disabled will be removed from the list of servers in the memcached_st structure. This must be used in combination with MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS +If enabled any hosts which have been flagged as disabled will be removed from the list of servers in the memcached_st structure. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RETRY_TIMEOUT +.UNINDENT +.sp +When enabled a host which is problematic will only be checked for usage based on the amount of time set by this behavior. The value is in seconds. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY +.UNINDENT +.sp +When enabled the prefix key will be added to the key when determining server +by hash. See \fBMEMCACHED_CALLBACK_NAMESPACE\fP for additional +information. +.SH RETURN +.sp - memcached_behavior_get() returns either the current value of the get, or 0 - or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set() ++memcached_behavior_get returns either the current value of the get, or 0 ++or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set +returns failure or success. +.SH NOTES +.sp - memcached_behavior_set() in version .17 was changed from taking a pointer ++memcached_behavior_set in version .17 was changed from taking a pointer +to data value, to taking a uin64_t. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_behavior_set.3 index 811e5249,00000000..bfd7be62 mode 100644,000000..100644 --- a/docs/man/memcached_behavior_set.3 +++ b/docs/man/memcached_behavior_set.3 @@@ -1,338 -1,0 +1,352 @@@ - .TH "MEMCACHED_BEHAVIOR_SET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_BEHAVIOR_SET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_behavior_set \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manipulate the behavior of a memcached_st structure. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint64_t memcached_behavior_get (memcached_st *ptr, memcached_behavior flag); ++.B memcached_behavior_t +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_behavior_set (memcached_st *ptr, memcached_behavior flag, uint64_t data); ++.B uint64_t memcached_behavior_get(memcached_st\fI\ *ptr\fP, \fI\%memcached_behavior_t\fP\fI\ flag\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_behavior_set(memcached_st\fI\ *ptr\fP, \fI\%memcached_behavior_t\fP\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fIlibmemcached(3)\fP behavior can be modified by using \fBmemcached_behavior_set()\fP. Default behavior is the library strives to be quick and ++\fIlibmemcached(3)\fP behavior can be modified by using \fI\%memcached_behavior_set()\fP. Default behavior is the library strives to be quick and +accurate. Some behavior, while being faster, can also result in not entirely +accurate behavior (for instance, \fBmemcached_set()\fP will always respond +with \fBMEMCACHED_SUCCESS\fP). +.sp - \fBmemcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client. ++\fI\%memcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client. +.sp - \fBmemcached_behavior_set()\fP changes the value of a particular option ++\fI\%memcached_behavior_set()\fP changes the value of a particular option +of the client. It takes both a flag (listed below) and a value. For simple +on or off options you just need to pass in a value of 1. Calls to - \fBmemcached_behavior_set()\fP will flush and reset all connections. ++\fI\%memcached_behavior_set()\fP will flush and reset all connections. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_USE_UDP +.UNINDENT +.sp +Causes \fIlibmemcached(3)\fP to use the UDP transport when communicating +with a memcached server. Not all I/O operations are testsed +when this behavior is enababled. The following operations will return - \fBMEMCACHED_NOT_SUPPORTED\fP when executed with the \fI\%MEMCACHED_BEHAVIOR_USE_UDP\fP enabled: \fBmemcached_version()\fP, \fBmemcached_stat()\fP, \fBmemcached_get()\fP, \fBmemcached_get_by_key()\fP, \fBmemcached_mget()\fP, \fBmemcached_mget_by_key()\fP, \fBmemcached_fetch()\fP, \fBmemcached_fetch_result()\fP, \fBmemcached_value_fetch()\fP. ++\fBMEMCACHED_NOT_SUPPORTED\fP when executed with the ++\fI\%MEMCACHED_BEHAVIOR_USE_UDP\fP enabled: \fBmemcached_version()\fP, ++\fBmemcached_stat()\fP, \fBmemcached_get()\fP, ++\fBmemcached_get_by_key()\fP, \fBmemcached_mget()\fP, ++\fBmemcached_mget_by_key()\fP, \fBmemcached_fetch()\fP, ++\fBmemcached_fetch_result()\fP, \fBmemcached_fetch_execute()\fP. +.sp +All other operations are testsed but are executed in a \(aqfire\-and\-forget\(aq +mode, in which once the client has executed the operation, no attempt +will be made to ensure the operation has been received and acted on by the +server. +.sp +\fIlibmemcached(3)\fP does not allow TCP and UDP servers to be shared +within the same libmemached(3) client \(aqinstance\(aq. An attempt to add a TCP +server when this behavior is enabled will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP, as will attempting to add a UDP server when this behavior has +not been enabled. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NO_BLOCK +.UNINDENT +.sp +Causes \fIlibmemcached(3)\fP to use asychronous IO. This is the fastest +transport available for storage functions. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SND_TIMEOUT +.UNINDENT +.sp +This sets the microsecond behavior of the socket against the SO_SNDTIMEO flag. In cases where you cannot use non\-blocking IO this will allow you to still have timeouts on the sending of data. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RCV_TIMEOUT +.UNINDENT +.sp +This sets the microsecond behavior of the socket against the SO_RCVTIMEO flag. +.sp +In cases where you cannot use non\-blocking IO this will allow you to still have timeouts on the reading of data. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_TCP_NODELAY +.UNINDENT +.sp +Turns on the no\-delay feature for connecting sockets (may be faster in some +environments). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_HASH +.UNINDENT +.sp +Makes the default hashing algorithm for keys use MD5. The value can be set to either \fBMEMCACHED_HASH_DEFAULT\fP, \fBMEMCACHED_HASH_MD5\fP, \fBMEMCACHED_HASH_CRC\fP, \fBMEMCACHED_HASH_FNV1_64\fP, \fBMEMCACHED_HASH_FNV1A_64\fP, \fBMEMCACHED_HASH_FNV1_32\fP, \fBMEMCACHED_HASH_FNV1A_32\fP, \fBMEMCACHED_HASH_JENKINS\fP, \fBMEMCACHED_HASH_HSIEH\fP, and \fBMEMCACHED_HASH_MURMUR\fP. +.sp +Each hash has it\(aqs advantages and it\(aqs weaknesses. If you don\(aqt know or don\(aqt +care, just go with the default. +.sp +Support for \fBMEMCACHED_HASH_HSIEH\fP is a compile time option that is disabled by default. To enable tests for this hashing algorithm, configure and build libmemcached with the \-\-enable\-hash_hsieh. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_DISTRIBUTION +.UNINDENT +.sp +Using this you can enable different means of distributing values to servers. +.sp +The default method is MEMCACHED_DISTRIBUTION_MODULA. You can enable consistent hashing by setting MEMCACHED_DISTRIBUTION_CONSISTENT. Consistent hashing delivers better distribution and allows servers to be added to the cluster with minimal cache losses. Currently MEMCACHED_DISTRIBUTION_CONSISTENT is an alias for the value MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CACHE_LOOKUPS +.UNINDENT +.sp +Deprecated since version 0.46(?): DNS lookups are now always cached until an error occurs with the server. +.sp +Memcached can cache named lookups so that DNS lookups are made only once. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SUPPORT_CAS +.UNINDENT +.sp +Support CAS operations (this is not enabled by default at this point in the server since it imposes a slight performance penalty). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA +.UNINDENT +.sp - Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA and the hash to MEMCACHED_HASH_MD5. ++Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA and ++the hash to \fBMEMCACHED_HASH_MD5\fP. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED +Sets the default distribution to MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA with the weighted tests. and the hash to MEMCACHED_HASH_MD5. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_HASH +.UNINDENT +.sp - Sets the hashing algorithm for host mapping on continuum. The value can be set to either MEMCACHED_HASH_DEFAULT, MEMCACHED_HASH_MD5, MEMCACHED_HASH_CRC, MEMCACHED_HASH_FNV1_64, MEMCACHED_HASH_FNV1A_64, MEMCACHED_HASH_FNV1_32, and MEMCACHED_HASH_FNV1A_32. ++Sets the hashing algorithm for host mapping on continuum. The value can be set ++to either \fBMEMCACHED_HASH_DEFAULT\fP, \fBMEMCACHED_HASH_MD5\fP, ++\fBMEMCACHED_HASH_CRC\fP, \fBMEMCACHED_HASH_FNV1_64\fP, ++\fBMEMCACHED_HASH_FNV1A_64\fP, \fBMEMCACHED_HASH_FNV1_32\fP, and ++\fBMEMCACHED_HASH_FNV1A_32\fP. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KETAMA_COMPAT +.UNINDENT +.sp +Sets the compatibility mode. The value can be set to either MEMCACHED_KETAMA_COMPAT_LIBMEMCACHED (this is the default) or MEMCACHED_KETAMA_COMPAT_SPY to be compatible with the SPY Memcached client for Java. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_POLL_TIMEOUT +.UNINDENT +.sp - Modify the timeout value that is used by poll(). The default value is \-1. An signed int pointer must be passed to memcached_behavior_set() to change this value. For memcached_behavior_get() a signed int value will be cast and returned as the unsigned long long. ++Modify the timeout value that is used by poll. The default value is \-1. An signed int pointer must be passed to memcached_behavior_set to change this value. For memcached_behavior_get a signed int value will be cast and returned as the unsigned long long. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_USER_DATA +.UNINDENT +.sp +Deprecated since version <: 0.30 +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_BUFFER_REQUESTS +.UNINDENT +.sp +Enabling buffered IO causes commands to "buffer" instead of being sent. Any action that gets data causes this buffer to be be sent to the remote connection. Quiting the connection or closing down the connection will also cause the buffered data to be pushed to the remote connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_VERIFY_KEY +.UNINDENT +.sp +Enabling this will cause \fIlibmemcached(3)\fP to test all keys to verify that they are valid keys. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SORT_HOSTS +.UNINDENT +.sp +Enabling this will cause hosts that are added to be placed in the host list in sorted order. This will defeat consisten hashing. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT +.UNINDENT +.sp +In non\-blocking mode this changes the value of the timeout during socket connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_BINARY_PROTOCOL +.UNINDENT +.sp +Enable the use of the binary protocol. Please note that you cannot toggle this flag on an open connection. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.UNINDENT +.sp +Set this value to enable the server be removed after continuous MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT times connection failure. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK +.UNINDENT +.sp +Set this value to tune the number of messages that may be sent before libmemcached should start to automatically drain the input queue. Setting this value to high, may cause libmemcached to deadlock (trying to send data, but the send will block because the input buffer in the kernel is full). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK +.UNINDENT +.sp +Set this value to tune the number of bytes that may be sent before libmemcached should start to automatically drain the input queue (need at least 10 IO requests sent without reading the input buffer). Setting this value to high, may cause libmemcached to deadlock (trying to send data, but the send will block because the input buffer in the kernel is full). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH +.UNINDENT +.sp +The binary protocol works a bit different than the textual protocol in that a multiget is implemented as a pipe of single get\-operations which are sent to the server in a chunk. If you are using large multigets from your application, you may improve the latency of the gets by setting this value so you send out the first chunk of requests when you hit the specified limit. It allows the servers to start processing the requests to send the data back while the rest of the requests are created and sent to the server. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NOREPLY +.UNINDENT +.sp +Set this value to specify that you really don\(aqt care about the result from your storage commands (set, add, replace, append, prepend). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS +.UNINDENT +.sp +If you just want "a poor mans HA", you may specify the numbers of replicas libmemcached should store of each item (on different servers). This replication does not dedicate certain memcached servers to store the replicas in, but instead it will store the replicas together with all of the other objects (on the \(aqn\(aq next servers specified in your server list). +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ +.UNINDENT +.sp +Allows randomizing the replica reads starting point. Normally the read is done from primary server and in case of miss the read is done from primary + 1, then primary + 2 all the way to \(aqn\(aq replicas. If this option is set on the starting point of the replica reads is randomized between the servers. This allows distributing read load to multiple servers with the expense of more write traffic. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_CORK +.UNINDENT +.sp +This open has been deprecated with the behavior now built and used appropriately on selected platforms. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KEEPALIVE +.UNINDENT +.sp +Enable TCP_KEEPALIVE behavior. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_KEEPALIVE_IDLE +.UNINDENT +.sp +Specify time, in seconds, to mark a connection as idle. This is only available as an option Linux. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE +.UNINDENT +.sp +Find the current size of SO_SNDBUF. A value of 0 means either an error occured or no hosts were available. It is safe to assume system default if this occurs. If an error occurs you can checked the last cached errno statement to find the specific error. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE +.UNINDENT +.sp +Find the current size of SO_RCVBUF. A value of 0 means either an error occured or no hosts were available. It is safe to assume system default if this occurs. If an error occurs you can checked the last cached errno statement to find the specific error. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT +.UNINDENT +.sp +Deprecated since version 0.48: See \fI\%MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS\fP +.sp +This number of times a host can have an error before it is disabled. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS +.UNINDENT +.sp +Deprecated since version 0.48: See \fI\%MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS\fP +.sp +If enabled any hosts which have been flagged as disabled will be removed from the list of servers in the memcached_st structure. This must be used in combination with MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT. + +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS +If enabled any hosts which have been flagged as disabled will be removed from the list of servers in the memcached_st structure. +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_RETRY_TIMEOUT +.UNINDENT +.sp +When enabled a host which is problematic will only be checked for usage based on the amount of time set by this behavior. The value is in seconds. +.INDENT 0.0 +.TP +.B MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY +.UNINDENT +.sp +When enabled the prefix key will be added to the key when determining server +by hash. See \fBMEMCACHED_CALLBACK_NAMESPACE\fP for additional +information. +.SH RETURN +.sp - memcached_behavior_get() returns either the current value of the get, or 0 - or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set() ++memcached_behavior_get returns either the current value of the get, or 0 ++or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set +returns failure or success. +.SH NOTES +.sp - memcached_behavior_set() in version .17 was changed from taking a pointer ++memcached_behavior_set in version .17 was changed from taking a pointer +to data value, to taking a uin64_t. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_callback.3 index b4e5ffbc,00000000..f1ba627e mode 100644,000000..100644 --- a/docs/man/memcached_callback.3 +++ b/docs/man/memcached_callback.3 @@@ -1,179 -1,0 +1,183 @@@ - .TH "MEMCACHED_CALLBACK" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_CALLBACK" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_callback \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get and set a callback +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, const void *data); ++.B memcached_callback_t +.UNINDENT +.INDENT 0.0 +.TP - .B void * memcached_callback_get (memcached_st *ptr, memcached_callback_t flag, memcached_return_t *error); ++.B memcached_return_t memcached_callback_set(memcached_st\fI\ *ptr\fP, \fI\%memcached_callback_t\fP\fI\ flag\fP, const void\fI\ *data\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B void * memcached_callback_get(memcached_st\fI\ *ptr\fP, \fI\%memcached_callback_t\fP\fI\ flag\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can have callbacks set key execution points. These either +provide function calls at points in the code, or return pointers to +structures for particular usages. +.sp - \fBmemcached_callback_get()\fP takes a callback flag and returns the - structure or function set by \fBmemcached_callback_set()\fP. ++\fI\%memcached_callback_get()\fP takes a callback flag and returns the ++structure or function set by \fI\%memcached_callback_set()\fP. +.sp - \fBmemcached_callback_set()\fP changes the function/structure assigned by a ++\fI\%memcached_callback_set()\fP changes the function/structure assigned by a +callback flag. No connections are reset. +.sp +You can use \fI\%MEMCACHED_CALLBACK_USER_DATA\fP to provide custom context +if required for any of the callbacks. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_CLEANUP_FUNCTION +.UNINDENT +.sp +When \fBmemcached_delete()\fP is called this function will be excuted. At +the point of its execution all connections are closed. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_CLONE_FUNCTION +.UNINDENT +.sp +When \fBmemcached_delete()\fP is called this function will be excuted. +At the point of its execution all connections are closed. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_PREFIX_KEY +See \fI\%MEMCACHED_CALLBACK_NAMESPACE\fP +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_NAMESPACE +.UNINDENT +.sp +You can set a value which will be used to create a domain for your keys. +The value specified here will be prefixed to each of your keys. The value can - not be greater then \fBMEMCACHED_PREFIX_KEY_MAX_SIZE \- 1\fP and will ++not be greater then \fBMEMCACHED_PREFIX_KEY_MAX_SIZE\fP \- 1 and will +reduce \fBMEMCACHED_MAX_KEY\fP by the value of your key. +.sp +The prefix key is only applied to the primary key, not the master key. +\fBMEMCACHED_FAILURE\fP will be returned if no key is set. In the case of +a key which is too long, \fBMEMCACHED_BAD_KEY_PROVIDED\fP will be returned. +.sp +If you set a value with the value being NULL then the prefix key is disabled. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_USER_DATA +.UNINDENT +.sp +This allows you to store a pointer to a specifc piece of data. This can be +retrieved from inside of \fBmemcached_fetch_execute()\fP. Cloning a +\fBmemcached_st\fP will copy the pointer to the clone. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_MALLOC_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_REALLOC_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_FREE_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_GET_FAILURE +.UNINDENT +.sp +This function implements the read through cache behavior. On failure of retrieval this callback will be called. +.sp +You are responsible for populating the result object provided. This result object will then be stored in the server and returned to the calling process. +.sp +You must clone the \fBmemcached_st\fP in order to +make use of it. The value will be stored only if you return +\fBMEMCACHED_SUCCESS\fP or \fBMEMCACHED_BUFFERED\fP. Returning +\fBMEMCACHED_BUFFERED\fP will cause the object to be buffered and not sent +immediatly (if this is the default behavior based on your connection setup +this will happen automatically). +.sp +The prototype for this is: +.INDENT 0.0 +.TP +.B memcached_return_t (*memcached_trigger_key)(memcached_st *ptr, char *key, size_t key_length, memcached_result_st *result); +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_DELETE_TRIGGER +.UNINDENT +.sp +This function implements a trigger upon successful deletion of a key. The memcached_st structure will need to be cloned in order to make use of it. +.sp +The prototype for this is: +.INDENT 0.0 +.TP +.B typedef memcached_return_t (*memcached_trigger_delete_key)(memcached_st *ptr, char *key, size_t key_length); +.UNINDENT +.SH RETURN +.sp - \fBmemcached_callback_get()\fP return the function or structure that was ++\fI\%memcached_callback_get()\fP return the function or structure that was +provided. Upon error, nothing is set, null is returned, and the +\fBmemcached_return_t\fP argument is set to \fBMEMCACHED_FAILURE\fP. +.sp - \fBmemcached_callback_set()\fP returns \fBMEMCACHED_SUCCESS\fP upon ++\fI\%memcached_callback_set()\fP returns \fBMEMCACHED_SUCCESS\fP upon +successful setting, otherwise \fBMEMCACHED_FAILURE\fP on error. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_callback_get.3 index 927c9163,00000000..d72a8356 mode 100644,000000..100644 --- a/docs/man/memcached_callback_get.3 +++ b/docs/man/memcached_callback_get.3 @@@ -1,179 -1,0 +1,183 @@@ - .TH "MEMCACHED_CALLBACK_GET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_CALLBACK_GET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_callback_get \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get and set a callback +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, const void *data); ++.B memcached_callback_t +.UNINDENT +.INDENT 0.0 +.TP - .B void * memcached_callback_get (memcached_st *ptr, memcached_callback_t flag, memcached_return_t *error); ++.B memcached_return_t memcached_callback_set(memcached_st\fI\ *ptr\fP, \fI\%memcached_callback_t\fP\fI\ flag\fP, const void\fI\ *data\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B void * memcached_callback_get(memcached_st\fI\ *ptr\fP, \fI\%memcached_callback_t\fP\fI\ flag\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can have callbacks set key execution points. These either +provide function calls at points in the code, or return pointers to +structures for particular usages. +.sp - \fBmemcached_callback_get()\fP takes a callback flag and returns the - structure or function set by \fBmemcached_callback_set()\fP. ++\fI\%memcached_callback_get()\fP takes a callback flag and returns the ++structure or function set by \fI\%memcached_callback_set()\fP. +.sp - \fBmemcached_callback_set()\fP changes the function/structure assigned by a ++\fI\%memcached_callback_set()\fP changes the function/structure assigned by a +callback flag. No connections are reset. +.sp +You can use \fI\%MEMCACHED_CALLBACK_USER_DATA\fP to provide custom context +if required for any of the callbacks. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_CLEANUP_FUNCTION +.UNINDENT +.sp +When \fBmemcached_delete()\fP is called this function will be excuted. At +the point of its execution all connections are closed. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_CLONE_FUNCTION +.UNINDENT +.sp +When \fBmemcached_delete()\fP is called this function will be excuted. +At the point of its execution all connections are closed. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_PREFIX_KEY +See \fI\%MEMCACHED_CALLBACK_NAMESPACE\fP +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_NAMESPACE +.UNINDENT +.sp +You can set a value which will be used to create a domain for your keys. +The value specified here will be prefixed to each of your keys. The value can - not be greater then \fBMEMCACHED_PREFIX_KEY_MAX_SIZE \- 1\fP and will ++not be greater then \fBMEMCACHED_PREFIX_KEY_MAX_SIZE\fP \- 1 and will +reduce \fBMEMCACHED_MAX_KEY\fP by the value of your key. +.sp +The prefix key is only applied to the primary key, not the master key. +\fBMEMCACHED_FAILURE\fP will be returned if no key is set. In the case of +a key which is too long, \fBMEMCACHED_BAD_KEY_PROVIDED\fP will be returned. +.sp +If you set a value with the value being NULL then the prefix key is disabled. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_USER_DATA +.UNINDENT +.sp +This allows you to store a pointer to a specifc piece of data. This can be +retrieved from inside of \fBmemcached_fetch_execute()\fP. Cloning a +\fBmemcached_st\fP will copy the pointer to the clone. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_MALLOC_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_REALLOC_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_FREE_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_GET_FAILURE +.UNINDENT +.sp +This function implements the read through cache behavior. On failure of retrieval this callback will be called. +.sp +You are responsible for populating the result object provided. This result object will then be stored in the server and returned to the calling process. +.sp +You must clone the \fBmemcached_st\fP in order to +make use of it. The value will be stored only if you return +\fBMEMCACHED_SUCCESS\fP or \fBMEMCACHED_BUFFERED\fP. Returning +\fBMEMCACHED_BUFFERED\fP will cause the object to be buffered and not sent +immediatly (if this is the default behavior based on your connection setup +this will happen automatically). +.sp +The prototype for this is: +.INDENT 0.0 +.TP +.B memcached_return_t (*memcached_trigger_key)(memcached_st *ptr, char *key, size_t key_length, memcached_result_st *result); +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_DELETE_TRIGGER +.UNINDENT +.sp +This function implements a trigger upon successful deletion of a key. The memcached_st structure will need to be cloned in order to make use of it. +.sp +The prototype for this is: +.INDENT 0.0 +.TP +.B typedef memcached_return_t (*memcached_trigger_delete_key)(memcached_st *ptr, char *key, size_t key_length); +.UNINDENT +.SH RETURN +.sp - \fBmemcached_callback_get()\fP return the function or structure that was ++\fI\%memcached_callback_get()\fP return the function or structure that was +provided. Upon error, nothing is set, null is returned, and the +\fBmemcached_return_t\fP argument is set to \fBMEMCACHED_FAILURE\fP. +.sp - \fBmemcached_callback_set()\fP returns \fBMEMCACHED_SUCCESS\fP upon ++\fI\%memcached_callback_set()\fP returns \fBMEMCACHED_SUCCESS\fP upon +successful setting, otherwise \fBMEMCACHED_FAILURE\fP on error. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_callback_set.3 index 978cedf2,00000000..e723de92 mode 100644,000000..100644 --- a/docs/man/memcached_callback_set.3 +++ b/docs/man/memcached_callback_set.3 @@@ -1,179 -1,0 +1,183 @@@ - .TH "MEMCACHED_CALLBACK_SET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_CALLBACK_SET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_callback_set \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get and set a callback +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, const void *data); ++.B memcached_callback_t +.UNINDENT +.INDENT 0.0 +.TP - .B void * memcached_callback_get (memcached_st *ptr, memcached_callback_t flag, memcached_return_t *error); ++.B memcached_return_t memcached_callback_set(memcached_st\fI\ *ptr\fP, \fI\%memcached_callback_t\fP\fI\ flag\fP, const void\fI\ *data\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B void * memcached_callback_get(memcached_st\fI\ *ptr\fP, \fI\%memcached_callback_t\fP\fI\ flag\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can have callbacks set key execution points. These either +provide function calls at points in the code, or return pointers to +structures for particular usages. +.sp - \fBmemcached_callback_get()\fP takes a callback flag and returns the - structure or function set by \fBmemcached_callback_set()\fP. ++\fI\%memcached_callback_get()\fP takes a callback flag and returns the ++structure or function set by \fI\%memcached_callback_set()\fP. +.sp - \fBmemcached_callback_set()\fP changes the function/structure assigned by a ++\fI\%memcached_callback_set()\fP changes the function/structure assigned by a +callback flag. No connections are reset. +.sp +You can use \fI\%MEMCACHED_CALLBACK_USER_DATA\fP to provide custom context +if required for any of the callbacks. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_CLEANUP_FUNCTION +.UNINDENT +.sp +When \fBmemcached_delete()\fP is called this function will be excuted. At +the point of its execution all connections are closed. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_CLONE_FUNCTION +.UNINDENT +.sp +When \fBmemcached_delete()\fP is called this function will be excuted. +At the point of its execution all connections are closed. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_PREFIX_KEY +See \fI\%MEMCACHED_CALLBACK_NAMESPACE\fP +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_NAMESPACE +.UNINDENT +.sp +You can set a value which will be used to create a domain for your keys. +The value specified here will be prefixed to each of your keys. The value can - not be greater then \fBMEMCACHED_PREFIX_KEY_MAX_SIZE \- 1\fP and will ++not be greater then \fBMEMCACHED_PREFIX_KEY_MAX_SIZE\fP \- 1 and will +reduce \fBMEMCACHED_MAX_KEY\fP by the value of your key. +.sp +The prefix key is only applied to the primary key, not the master key. +\fBMEMCACHED_FAILURE\fP will be returned if no key is set. In the case of +a key which is too long, \fBMEMCACHED_BAD_KEY_PROVIDED\fP will be returned. +.sp +If you set a value with the value being NULL then the prefix key is disabled. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_USER_DATA +.UNINDENT +.sp +This allows you to store a pointer to a specifc piece of data. This can be +retrieved from inside of \fBmemcached_fetch_execute()\fP. Cloning a +\fBmemcached_st\fP will copy the pointer to the clone. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_MALLOC_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_REALLOC_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_FREE_FUNCTION +.UNINDENT +.sp +Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead. +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_GET_FAILURE +.UNINDENT +.sp +This function implements the read through cache behavior. On failure of retrieval this callback will be called. +.sp +You are responsible for populating the result object provided. This result object will then be stored in the server and returned to the calling process. +.sp +You must clone the \fBmemcached_st\fP in order to +make use of it. The value will be stored only if you return +\fBMEMCACHED_SUCCESS\fP or \fBMEMCACHED_BUFFERED\fP. Returning +\fBMEMCACHED_BUFFERED\fP will cause the object to be buffered and not sent +immediatly (if this is the default behavior based on your connection setup +this will happen automatically). +.sp +The prototype for this is: +.INDENT 0.0 +.TP +.B memcached_return_t (*memcached_trigger_key)(memcached_st *ptr, char *key, size_t key_length, memcached_result_st *result); +.UNINDENT +.INDENT 0.0 +.TP +.B MEMCACHED_CALLBACK_DELETE_TRIGGER +.UNINDENT +.sp +This function implements a trigger upon successful deletion of a key. The memcached_st structure will need to be cloned in order to make use of it. +.sp +The prototype for this is: +.INDENT 0.0 +.TP +.B typedef memcached_return_t (*memcached_trigger_delete_key)(memcached_st *ptr, char *key, size_t key_length); +.UNINDENT +.SH RETURN +.sp - \fBmemcached_callback_get()\fP return the function or structure that was ++\fI\%memcached_callback_get()\fP return the function or structure that was +provided. Upon error, nothing is set, null is returned, and the +\fBmemcached_return_t\fP argument is set to \fBMEMCACHED_FAILURE\fP. +.sp - \fBmemcached_callback_set()\fP returns \fBMEMCACHED_SUCCESS\fP upon ++\fI\%memcached_callback_set()\fP returns \fBMEMCACHED_SUCCESS\fP upon +successful setting, otherwise \fBMEMCACHED_FAILURE\fP on error. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_cas.3 index 50ab892a,00000000..04ec2d04 mode 100644,000000..100644 --- a/docs/man/memcached_cas.3 +++ b/docs/man/memcached_cas.3 @@@ -1,91 -1,0 +1,91 @@@ - .TH "MEMCACHED_CAS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_CAS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_cas \- Working with data on the server in an atomic fashion +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_cas(memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags, uint64_t cas); ++.B memcached_return_t memcached_cas(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP, uint64_t\fI\ cas\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_cas_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags, uint64_t cas); ++.B memcached_return_t memcached_cas_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP, uint64_t\fI\ cas\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_cas()\fP overwrites data in the server as long as the "cas" ++\fI\%memcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result +by calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) +structure. At the point that this note was written cas is still buggy in memached. Turning on tests for it in libmemcached(3) is optional. Please see +\fBmemcached_set()\fP for information on how to do this. +.sp - \fBmemcached_cas_by_key()\fP method behaves in a similar method as the non - key methods. The difference is that it uses the \fBgroup_key\fP parameter ++\fI\%memcached_cas_by_key()\fP method behaves in a similar method as the non ++key methods. The difference is that it uses the group_key parameter +to map objects to particular servers. +.sp - \fBmemcached_cas()\fP is testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior ++\fI\%memcached_cas()\fP is testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. The +reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user +supplied data is less than 1400 bytes and depends on the protocol in use as, +well as the operation being executed. When running with the binary protocol, +\fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, +flags and expiry combined may not exceed 1368 bytes. When running with the +ASCII protocol, the exact limit fluctuates depending on which function is +being executed and whether the function is a cas operation or not. For +non\-cas ASCII set operations, there are at least 1335 bytes available to +split among the key, key_prefix, and value; for cas ASCII operations there +are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_set(3)\fP \fImemcached_append(3)\fP \fImemcached_add(3)\fP \fImemcached_prepend(3)\fP \fImemcached_replace(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_cas_by_key.3 index ba17a93e,00000000..4eff3007 mode 100644,000000..100644 --- a/docs/man/memcached_cas_by_key.3 +++ b/docs/man/memcached_cas_by_key.3 @@@ -1,91 -1,0 +1,91 @@@ - .TH "MEMCACHED_CAS_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_CAS_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_cas_by_key \- Storing and Replacing Data +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_cas(memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags, uint64_t cas); ++.B memcached_return_t memcached_cas(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP, uint64_t\fI\ cas\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_cas_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags, uint64_t cas); ++.B memcached_return_t memcached_cas_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP, uint64_t\fI\ cas\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_cas()\fP overwrites data in the server as long as the "cas" ++\fI\%memcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result +by calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) +structure. At the point that this note was written cas is still buggy in memached. Turning on tests for it in libmemcached(3) is optional. Please see +\fBmemcached_set()\fP for information on how to do this. +.sp - \fBmemcached_cas_by_key()\fP method behaves in a similar method as the non - key methods. The difference is that it uses the \fBgroup_key\fP parameter ++\fI\%memcached_cas_by_key()\fP method behaves in a similar method as the non ++key methods. The difference is that it uses the group_key parameter +to map objects to particular servers. +.sp - \fBmemcached_cas()\fP is testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior ++\fI\%memcached_cas()\fP is testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. The +reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user +supplied data is less than 1400 bytes and depends on the protocol in use as, +well as the operation being executed. When running with the binary protocol, +\fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, +flags and expiry combined may not exceed 1368 bytes. When running with the +ASCII protocol, the exact limit fluctuates depending on which function is +being executed and whether the function is a cas operation or not. For +non\-cas ASCII set operations, there are at least 1335 bytes available to +split among the key, key_prefix, and value; for cas ASCII operations there +are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_set(3)\fP \fImemcached_append(3)\fP \fImemcached_add(3)\fP \fImemcached_prepend(3)\fP \fImemcached_replace(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_clone.3 index 7acc9a56,00000000..005049f3 mode 100644,000000..100644 --- a/docs/man/memcached_clone.3 +++ b/docs/man/memcached_clone.3 @@@ -1,108 -1,0 +1,108 @@@ - .TH "MEMCACHED_CLONE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_CLONE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_clone \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcachd_st ++.B memcached_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP) ++.B \fI\%memcached_st\fP* memcached_create(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_free(memcached_st\fI\ *ptr\fP) ++.B void memcached_free(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP) ++.B \fI\%memcached_st\fP* memcached_clone(\fI\%memcached_st\fP\fI\ *destination\fP, \fI\%memcached_st\fP\fI\ *source\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_servers_reset(memcached_st) ++.B void memcached_servers_reset(\fI\%memcached_st\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fI\%memcached_create()\fP is used to create a \fBmemcached_st\fP ++\fI\%memcached_create()\fP is used to create a \fI\%memcached_st\fP +structure that will then be used by other libmemcached(3) functions to +communicate with the server. You should either pass a statically declared - \fBmemcached_st\fP to \fI\%memcached_create()\fP or ++\fI\%memcached_st\fP to \fI\%memcached_create()\fP or +a NULL. If a NULL passed in then a structure is allocated for you. +.sp +Please note, when you write new application use - \fBmemcached_create_with_options()\fP over ++\fBmemcached()\fP over +\fI\%memcached_create()\fP. +.sp +\fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but +it copies the defaults and list of servers from the source - \fBmemcached_st\fP. If you pass a null as the argument for the source ++\fI\%memcached_st\fP. If you pass a null as the argument for the source +to clone, it is the same as a call to \fI\%memcached_create()\fP. - If the destination argument is NULL a \fBmemcached_st\fP will be allocated ++If the destination argument is NULL a \fI\%memcached_st\fP will be allocated +for you. +.sp +\fI\%memcached_servers_reset()\fP allows you to zero out the list of - servers that the \fBmemcached_st\fP has. ++servers that the \fI\%memcached_st\fP has. +.sp - To clean up memory associated with a \fBmemcached_st\fP structure you ++To clean up memory associated with a \fI\%memcached_st\fP structure you +should pass it to \fI\%memcached_free()\fP when you are finished using it. +\fI\%memcached_free()\fP is the only way to make sure all memory is +deallocated when you finish using the structure. +.sp +You may wish to avoid using memcached_create(3) or memcached_clone(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp - \fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_create()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.sp - \fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_clone()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_create.3 index ab328507,00000000..6de3f34d mode 100644,000000..100644 --- a/docs/man/memcached_create.3 +++ b/docs/man/memcached_create.3 @@@ -1,108 -1,0 +1,108 @@@ - .TH "MEMCACHED_CREATE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_CREATE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_create \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcachd_st ++.B memcached_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP) ++.B \fI\%memcached_st\fP* memcached_create(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_free(memcached_st\fI\ *ptr\fP) ++.B void memcached_free(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP) ++.B \fI\%memcached_st\fP* memcached_clone(\fI\%memcached_st\fP\fI\ *destination\fP, \fI\%memcached_st\fP\fI\ *source\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_servers_reset(memcached_st) ++.B void memcached_servers_reset(\fI\%memcached_st\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fI\%memcached_create()\fP is used to create a \fBmemcached_st\fP ++\fI\%memcached_create()\fP is used to create a \fI\%memcached_st\fP +structure that will then be used by other libmemcached(3) functions to +communicate with the server. You should either pass a statically declared - \fBmemcached_st\fP to \fI\%memcached_create()\fP or ++\fI\%memcached_st\fP to \fI\%memcached_create()\fP or +a NULL. If a NULL passed in then a structure is allocated for you. +.sp +Please note, when you write new application use - \fBmemcached_create_with_options()\fP over ++\fBmemcached()\fP over +\fI\%memcached_create()\fP. +.sp +\fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but +it copies the defaults and list of servers from the source - \fBmemcached_st\fP. If you pass a null as the argument for the source ++\fI\%memcached_st\fP. If you pass a null as the argument for the source +to clone, it is the same as a call to \fI\%memcached_create()\fP. - If the destination argument is NULL a \fBmemcached_st\fP will be allocated ++If the destination argument is NULL a \fI\%memcached_st\fP will be allocated +for you. +.sp +\fI\%memcached_servers_reset()\fP allows you to zero out the list of - servers that the \fBmemcached_st\fP has. ++servers that the \fI\%memcached_st\fP has. +.sp - To clean up memory associated with a \fBmemcached_st\fP structure you ++To clean up memory associated with a \fI\%memcached_st\fP structure you +should pass it to \fI\%memcached_free()\fP when you are finished using it. +\fI\%memcached_free()\fP is the only way to make sure all memory is +deallocated when you finish using the structure. +.sp +You may wish to avoid using memcached_create(3) or memcached_clone(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp - \fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_create()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.sp - \fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_clone()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_decrement.3 index e637700a,00000000..ae8a7a2e mode 100644,000000..100644 --- a/docs/man/memcached_decrement.3 +++ b/docs/man/memcached_decrement.3 @@@ -1,124 -1,0 +1,123 @@@ - .TH "MEMCACHED_DECREMENT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_DECREMENT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_decrement \- Incrementing and Decrementing Values +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fImemcached(1)\fP servers have the ability to increment and decrement keys +(overflow and underflow are not detected). This gives you the ability to use +memcached to generate shared sequences of values. +.sp - memcached_increment() takes a key and keylength and increments the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_increment takes a key and keylength and increments the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement() takes a key and keylength and decrements the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_decrement takes a key and keylength and decrements the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_with_initial() takes a key and keylength and increments ++memcached_increment_with_initial takes a key and keylength and increments +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement_with_initial() takes a key and keylength and decrements ++memcached_decrement_with_initial takes a key and keylength and decrements +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_by_key(), memcached_decrement_by_key(), - memcached_increment_with_initial_by_key(), and - memcached_decrement_with_initial_by_key() are master key equivalents of the - above. ++\fI\%memcached_increment_by_key()\fP, \fI\%memcached_decrement_by_key()\fP, ++\fI\%memcached_increment_with_initial_by_key()\fP, and ++\fI\%memcached_decrement_with_initial_by_key()\fP are master key equivalents of the above. +.SH RETURN +.sp - A value of type \fBmemcached_return_t\fP is returned. ++A value of type \fBmemcached_return_t\fP is returned. +On success that value will be \fBMEMCACHED_SUCCESS\fP. - Use memcached_strerror() to translate this value to a printable string. ++Use memcached_strerror to translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_decrement_with_initial.3 index 04db9d24,00000000..b5134249 mode 100644,000000..100644 --- a/docs/man/memcached_decrement_with_initial.3 +++ b/docs/man/memcached_decrement_with_initial.3 @@@ -1,124 -1,0 +1,123 @@@ - .TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_decrement_with_initial \- Incrementing and Decrementing Values +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fImemcached(1)\fP servers have the ability to increment and decrement keys +(overflow and underflow are not detected). This gives you the ability to use +memcached to generate shared sequences of values. +.sp - memcached_increment() takes a key and keylength and increments the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_increment takes a key and keylength and increments the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement() takes a key and keylength and decrements the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_decrement takes a key and keylength and decrements the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_with_initial() takes a key and keylength and increments ++memcached_increment_with_initial takes a key and keylength and increments +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement_with_initial() takes a key and keylength and decrements ++memcached_decrement_with_initial takes a key and keylength and decrements +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_by_key(), memcached_decrement_by_key(), - memcached_increment_with_initial_by_key(), and - memcached_decrement_with_initial_by_key() are master key equivalents of the - above. ++\fI\%memcached_increment_by_key()\fP, \fI\%memcached_decrement_by_key()\fP, ++\fI\%memcached_increment_with_initial_by_key()\fP, and ++\fI\%memcached_decrement_with_initial_by_key()\fP are master key equivalents of the above. +.SH RETURN +.sp - A value of type \fBmemcached_return_t\fP is returned. ++A value of type \fBmemcached_return_t\fP is returned. +On success that value will be \fBMEMCACHED_SUCCESS\fP. - Use memcached_strerror() to translate this value to a printable string. ++Use memcached_strerror to translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_delete.3 index 8bf1ae43,00000000..c60914ab mode 100644,000000..100644 --- a/docs/man/memcached_delete.3 +++ b/docs/man/memcached_delete.3 @@@ -1,84 -1,0 +1,84 @@@ - .TH "MEMCACHED_DELETE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_DELETE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_delete \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_delete (memcached_st *ptr, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_delete(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_delete_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_delete_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_delete()\fP is used to delete a particular key. - \fBmemcached_delete_by_key()\fP works the same, but it takes a master key ++\fI\%memcached_delete()\fP is used to delete a particular key. ++\fI\%memcached_delete_by_key()\fP works the same, but it takes a master key +to find the given value. +.sp +Expiration works by placing the item into a delete queue, which means that +it won\(aqt be possible to retrieve it by the "get" command. The "add" and +"replace" commands with this key will also fail (the "set" command will +succeed, however). After the time passes, the item is finally deleted from server memory. +.sp +Please note the the Danga memcached server removed tests for expiration in +the 1.4 version. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned +On success that value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.sp +If you are using the non\-blocking mode of the library, success only +means that the message was queued for delivery. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_delete_by_key.3 index 34634d0d,00000000..82590909 mode 100644,000000..100644 --- a/docs/man/memcached_delete_by_key.3 +++ b/docs/man/memcached_delete_by_key.3 @@@ -1,84 -1,0 +1,84 @@@ - .TH "MEMCACHED_DELETE_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_DELETE_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_delete_by_key \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_delete (memcached_st *ptr, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_delete(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_delete_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_delete_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_delete()\fP is used to delete a particular key. - \fBmemcached_delete_by_key()\fP works the same, but it takes a master key ++\fI\%memcached_delete()\fP is used to delete a particular key. ++\fI\%memcached_delete_by_key()\fP works the same, but it takes a master key +to find the given value. +.sp +Expiration works by placing the item into a delete queue, which means that +it won\(aqt be possible to retrieve it by the "get" command. The "add" and +"replace" commands with this key will also fail (the "set" command will +succeed, however). After the time passes, the item is finally deleted from server memory. +.sp +Please note the the Danga memcached server removed tests for expiration in +the 1.4 version. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned +On success that value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.sp +If you are using the non\-blocking mode of the library, success only +means that the message was queued for delivery. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_destroy_sasl_auth_data.3 index 0ce01129,00000000..a458d559 mode 100644,000000..100644 --- a/docs/man/memcached_destroy_sasl_auth_data.3 +++ b/docs/man/memcached_destroy_sasl_auth_data.3 @@@ -1,94 -1,0 +1,92 @@@ - .TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_destroy_sasl_auth_data \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B void memcached_set_sasl_callbacks(memcached_st\fI\ *ptr\fP, const sasl_callback_t\fI\ *callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) ++.B memcached_return_t memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) ++.B memcached_return_t memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to plug in your own callbacks function used by +libsasl to perform SASL authentication. +.sp +Please note that SASL requires the memcached binary protocol, and you have +to specify the callbacks before you connect to the server. +.sp +\fI\%memcached_set_sasl_auth_data()\fP is a helper function defining +the basic functionality for you, but it will store the username and password +in memory. If you choose to use this method you have to call +\fI\%memcached_destroy_sasl_auth_data\fP before calling +\fBmemcached_free\fP to avoid a memory leak. You should NOT call +\fI\%memcached_destroy_sasl_auth_data\fP if you specify your own callback +function with \fI\%memcached_set_sasl_callbacks()\fP. - .sp - You as a client user have to initialize libsasl by using \fBsasl_client_init\fP before enabling it in libmemcached, and you have to shut down libsasl by - calling \fBsasl_done()\fP when you are done using SASL from libmemcached. +.SH RETURN +.sp - \fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used - by this memcached handle. \fBmemcached_get_sasl_set_auth_data()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used by ++this memcached handle. \fI\%memcached_set_sasl_auth_data()\fP returns ++\fBMEMCACHED_SUCCESS\fP upon success. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_dump.3 index b5b51b30,00000000..1063cceb mode 100644,000000..100644 --- a/docs/man/memcached_dump.3 +++ b/docs/man/memcached_dump.3 @@@ -1,78 -1,0 +1,78 @@@ - .TH "MEMCACHED_DUMP" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_DUMP" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_dump \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get a list of keys found on memcached servers +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_dump (memcached_st *ptr, memcached_dump_fn *function, void *context, uint32_t number_of_callbacks); ++.B memcached_return_t memcached_dump(memcached_st\fI\ *ptr\fP, \fI\%memcached_dump_fn\fP\fI\ *function\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B typedef memcached_return_t (*memcached_dump_fn)(memcached_st *ptr, const char *key, size_t key_length, void *context); ++.B memcached_return_t (*memcached_dump_fn)(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_dump()\fP is used to get a list of keys found in memcached(1) ++\fI\%memcached_dump()\fP is used to get a list of keys found in memcached(1) +servers. Because memcached(1) does not guarentee to dump all keys you can not +assume you have fetched all keys from the server. The function takes an array +of callbacks that it will use to execute on keys as they are found. +.sp +Currently the binary protocol is not testsed. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned +On success that value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_exist.3 index 788dbe4b,00000000..e0079267 mode 100644,000000..100644 --- a/docs/man/memcached_exist.3 +++ b/docs/man/memcached_exist.3 @@@ -1,68 -1,0 +1,68 @@@ - .TH "MEMCACHED_EXIST" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_EXIST" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_exist \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_return_t memcached_exist(memcached_st\fI\ *ptr\fP, char\fI\ *key\fP, size_t\fI\ *key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_exist_by_key(memcached_st\fI\ *ptr\fP, char\fI\ *group_key\fP, size_t\fI\ *group_key_length\fP, char\fI\ *key\fP, size_t\fI\ *key_length\fP) +New in version 0.53. +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_exist()\fP can be used to check to see if a key exists. No value is returned if the key exists, or does not exist, on the server. +.SH RETURN +.sp +\fI\%memcached_exist()\fP sets error to +to \fBMEMCACHED_SUCCESS\fP upon finding that the key exists. +\fBMEMCACHED_NOTFOUND\fP will be return if the key is not found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_exist_by_key.3 index ab6afe6e,00000000..c5397392 mode 100644,000000..100644 --- a/docs/man/memcached_exist_by_key.3 +++ b/docs/man/memcached_exist_by_key.3 @@@ -1,68 -1,0 +1,68 @@@ - .TH "MEMCACHED_EXIST_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_EXIST_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_exist_by_key \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_return_t memcached_exist(memcached_st\fI\ *ptr\fP, char\fI\ *key\fP, size_t\fI\ *key_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_exist_by_key(memcached_st\fI\ *ptr\fP, char\fI\ *group_key\fP, size_t\fI\ *group_key_length\fP, char\fI\ *key\fP, size_t\fI\ *key_length\fP) +New in version 0.53. +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_exist()\fP can be used to check to see if a key exists. No value is returned if the key exists, or does not exist, on the server. +.SH RETURN +.sp +\fI\%memcached_exist()\fP sets error to +to \fBMEMCACHED_SUCCESS\fP upon finding that the key exists. +\fBMEMCACHED_NOTFOUND\fP will be return if the key is not found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_fetch.3 index 0627216f,00000000..4d91fcc2 mode 100644,000000..100644 --- a/docs/man/memcached_fetch.3 +++ b/docs/man/memcached_fetch.3 @@@ -1,79 -1,0 +1,79 @@@ - .TH "MEMCACHED_FETCH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_FETCH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_fetch \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B char *memcached_fetch(memcached_st\fI\ *ptr\fP, char\fI\ *key\fP, size_t\fI\ *key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +Deprecated since version 0.50: Use \fBmemcached_fetch_result()\fP instead. +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_fetch()\fP is used to fetch an individual value from the server. \fBmemcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +Values returned by \fI\%memcached_fetch()\fP must be freed by the caller. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +\fI\%memcached_fetch()\fP sets error to +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.sp - \fBMEMCACHED_KEY_TOO_BIG\fP is set to error whenever :c:\fBmemcached_fetch()\fP was used ++\fBMEMCACHED_KEY_TOO_BIG\fP is set to error whenever \fI\%memcached_fetch()\fP was used +and the key was set larger then \fBMEMCACHED_MAX_KEY\fP, which was the largest +key allowed for the original memcached ascii server. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_fetch_result(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_fetch_execute.3 index 93a9fa05,00000000..dd42f3cd mode 100644,000000..100644 --- a/docs/man/memcached_fetch_execute.3 +++ b/docs/man/memcached_fetch_execute.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_FETCH_EXECUTE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_FETCH_EXECUTE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_fetch_execute \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_fetch_result.3 index dd02c05b,00000000..be3ffd5d mode 100644,000000..100644 --- a/docs/man/memcached_fetch_result.3 +++ b/docs/man/memcached_fetch_result.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_FETCH_RESULT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_FETCH_RESULT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_fetch_result \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_flush.3 index 05188168,00000000..ead7cd83 mode 100644,000000..100644 --- a/docs/man/memcached_flush.3 +++ b/docs/man/memcached_flush.3 @@@ -1,73 -1,0 +1,73 @@@ - .TH "MEMCACHED_FLUSH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_FLUSH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_flush \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Wipe contents of memcached servers +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_flush (memcached_st *ptr, time_t expiration); ++.B memcached_return_t memcached_flush(memcached_st\fI\ *ptr\fP, time_t\fI\ expiration\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - :c:func::\fImemcached_flush()\fP is used to wipe clean the contents of \fBmemcached\fP servers. ++:c:func::\fImemcached_flush\fP is used to wipe clean the contents of \fBmemcached\fP servers. +It will either do this immediately or expire the content based on the +expiration time passed to the method (a value of zero causes an immediate +flush). The operation is not atomic to multiple servers, just atomic to a +single server. That is, it will flush the servers in the order that they were +added. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned +On success that value will be \fBMEMCACHED_SUCCESS\fP. - Use \fBmemcached_strerror()\fP to translate this value to a printable string. ++Use \fBmemcached_strerror\fP to translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_flush_buffers.3 index 992db412,00000000..e1ef53a4 mode 100644,000000..100644 --- a/docs/man/memcached_flush_buffers.3 +++ b/docs/man/memcached_flush_buffers.3 @@@ -1,72 -1,0 +1,72 @@@ - .TH "MEMCACHED_FLUSH_BUFFERS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_FLUSH_BUFFERS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_flush_buffers \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Flush and senf buffered commands +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_flush_buffers (memcached_st *ptr); ++.B memcached_return_t memcached_flush_buffers(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_flush_buffers()\fP is used in conjunction with ++\fI\%memcached_flush_buffers()\fP is used in conjunction with +\fBMEMCACHED_BEHAVIOR_BUFFER_REQUESTS\fP (see memcached_behavior(3)) to flush all buffers by sending the buffered commands to the server for processing. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned +On success that value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_free.3 index 327fdb92,00000000..a18ae833 mode 100644,000000..100644 --- a/docs/man/memcached_free.3 +++ b/docs/man/memcached_free.3 @@@ -1,108 -1,0 +1,108 @@@ - .TH "MEMCACHED_FREE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_FREE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_free \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcachd_st ++.B memcached_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP) ++.B \fI\%memcached_st\fP* memcached_create(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_free(memcached_st\fI\ *ptr\fP) ++.B void memcached_free(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP) ++.B \fI\%memcached_st\fP* memcached_clone(\fI\%memcached_st\fP\fI\ *destination\fP, \fI\%memcached_st\fP\fI\ *source\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_servers_reset(memcached_st) ++.B void memcached_servers_reset(\fI\%memcached_st\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fI\%memcached_create()\fP is used to create a \fBmemcached_st\fP ++\fI\%memcached_create()\fP is used to create a \fI\%memcached_st\fP +structure that will then be used by other libmemcached(3) functions to +communicate with the server. You should either pass a statically declared - \fBmemcached_st\fP to \fI\%memcached_create()\fP or ++\fI\%memcached_st\fP to \fI\%memcached_create()\fP or +a NULL. If a NULL passed in then a structure is allocated for you. +.sp +Please note, when you write new application use - \fBmemcached_create_with_options()\fP over ++\fBmemcached()\fP over +\fI\%memcached_create()\fP. +.sp +\fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but +it copies the defaults and list of servers from the source - \fBmemcached_st\fP. If you pass a null as the argument for the source ++\fI\%memcached_st\fP. If you pass a null as the argument for the source +to clone, it is the same as a call to \fI\%memcached_create()\fP. - If the destination argument is NULL a \fBmemcached_st\fP will be allocated ++If the destination argument is NULL a \fI\%memcached_st\fP will be allocated +for you. +.sp +\fI\%memcached_servers_reset()\fP allows you to zero out the list of - servers that the \fBmemcached_st\fP has. ++servers that the \fI\%memcached_st\fP has. +.sp - To clean up memory associated with a \fBmemcached_st\fP structure you ++To clean up memory associated with a \fI\%memcached_st\fP structure you +should pass it to \fI\%memcached_free()\fP when you are finished using it. +\fI\%memcached_free()\fP is the only way to make sure all memory is +deallocated when you finish using the structure. +.sp +You may wish to avoid using memcached_create(3) or memcached_clone(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp - \fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_create()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.sp - \fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_clone()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_generate_hash.3 index 8a739ffa,00000000..c8f4b053 mode 100644,000000..100644 --- a/docs/man/memcached_generate_hash.3 +++ b/docs/man/memcached_generate_hash.3 @@@ -1,85 -1,0 +1,129 @@@ - .TH "MEMCACHED_GENERATE_HASH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_GENERATE_HASH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_generate_hash \- Generating hash values directly +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Hash a key value +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t memcached_generate_hash_value (const char *key, size_t key_length, memcached_hash_t hash_algorithm); ++.B memcached_hash_t +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t memcached_generate_hash (memcached_st *ptr, const char *key, size_t key_length); ++.B uint32_t memcached_generate_hash_value(const char\fI\ *key\fP, size_t\fI\ key_length\fP, \fI\%memcached_hash_t\fP\fI\ hash_algorithm\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B uint32_t memcached_generate_hash(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_DEFAULT ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_MD5 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_CRC ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1_64 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1A_64 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1_32 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1A_32 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_JENKINS ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_MURMUR ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_HSIEH +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_generate_hash_value()\fP allows you to hash a key using one of ++\fI\%memcached_generate_hash_value()\fP allows you to hash a key using one of +the hash functions defined in the library. This method is provided for +the convenience of higher\-level language bindings and is not necessary +for normal memcache operations. +.sp +The allowed hash algorithm constants are listed in the manpage for +\fBmemcached_behavior_set()\fP. +.sp - \fBmemcached_generate_hash()\fP takes a \fBmemcached_st\fP struture ++\fI\%memcached_generate_hash()\fP takes a \fBmemcached_st\fP struture +and produces the hash value that would have been generated based on the - defaults of the \fBmemcached_st structure\fP. ++defaults of \fBmemcached_st\fP. +.sp +As of version 0.36 all hash methods have been placed into the library +libhashkit(3) which is linked with libmemcached(3). For more information please see its documentation. +.SH RETURN +.sp +A 32\-bit integer which is the result of hashing the given key. +For 64\-bit hash algorithms, only the least\-significant 32 bits are +returned. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_generate_hash_value.3 index 78bbda01,00000000..d899b66b mode 100644,000000..100644 --- a/docs/man/memcached_generate_hash_value.3 +++ b/docs/man/memcached_generate_hash_value.3 @@@ -1,85 -1,0 +1,129 @@@ - .TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_generate_hash_value \- Generating hash values directly +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Hash a key value +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B uint32_t memcached_generate_hash_value (const char *key, size_t key_length, memcached_hash_t hash_algorithm); ++.B memcached_hash_t +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t memcached_generate_hash (memcached_st *ptr, const char *key, size_t key_length); ++.B uint32_t memcached_generate_hash_value(const char\fI\ *key\fP, size_t\fI\ key_length\fP, \fI\%memcached_hash_t\fP\fI\ hash_algorithm\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B uint32_t memcached_generate_hash(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_DEFAULT ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_MD5 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_CRC ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1_64 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1A_64 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1_32 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_FNV1A_32 ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_JENKINS ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_MURMUR ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B MEMCACHED_HASH_HSIEH +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_generate_hash_value()\fP allows you to hash a key using one of ++\fI\%memcached_generate_hash_value()\fP allows you to hash a key using one of +the hash functions defined in the library. This method is provided for +the convenience of higher\-level language bindings and is not necessary +for normal memcache operations. +.sp +The allowed hash algorithm constants are listed in the manpage for +\fBmemcached_behavior_set()\fP. +.sp - \fBmemcached_generate_hash()\fP takes a \fBmemcached_st\fP struture ++\fI\%memcached_generate_hash()\fP takes a \fBmemcached_st\fP struture +and produces the hash value that would have been generated based on the - defaults of the \fBmemcached_st structure\fP. ++defaults of \fBmemcached_st\fP. +.sp +As of version 0.36 all hash methods have been placed into the library +libhashkit(3) which is linked with libmemcached(3). For more information please see its documentation. +.SH RETURN +.sp +A 32\-bit integer which is the result of hashing the given key. +For 64\-bit hash algorithms, only the least\-significant 32 bits are +returned. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_get.3 index 9322c1b2,00000000..beb42734 mode 100644,000000..100644 --- a/docs/man/memcached_get.3 +++ b/docs/man/memcached_get.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_GET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_GET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_get \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_get_by_key.3 index ff4b7d83,00000000..73dff1f5 mode 100644,000000..100644 --- a/docs/man/memcached_get_by_key.3 +++ b/docs/man/memcached_get_by_key.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_GET_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_GET_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_get_by_key \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_get_memory_allocators.3 index 1e8e86af,00000000..53c7117f mode 100644,000000..100644 --- a/docs/man/memcached_get_memory_allocators.3 +++ b/docs/man/memcached_get_memory_allocators.3 @@@ -1,112 -1,0 +1,112 @@@ - .TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_get_memory_allocators \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manage memory allocator functions +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_memory_allocators (memcached_st *ptr, memcached_malloc_fn mem_malloc, memcached_free_fn mem_free, memcached_realloc_fn mem_realloc, memcached_calloc_fn mem_calloc, void *context); ++.B memcached_return_t memcached_set_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ mem_calloc\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_get_memory_allocators (memcached_st *ptr, memcached_malloc_fn *mem_malloc, memcached_free_fn *mem_free, memcached_realloc_fn *mem_realloc, memcached_calloc_fn *mem_calloc); ++.B void memcached_get_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ *mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ *mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ *mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ *mem_calloc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * memcached_get_memory_allocators_context(const memcached_st *ptr); ++.B void * memcached_get_memory_allocators_context(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_malloc_fn) (memcached_st *ptr, const size_t size, void *context); ++.B void * (*memcached_malloc_fn)(memcached_st\fI\ *ptr\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_realloc_fn) (memcached_st *ptr, void *mem, const size_t size, void *context); ++.B void * (*memcached_realloc_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void (*memcached_free_fn) (memcached_st *ptr, void *mem, void *context); ++.B void (*memcached_free_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_calloc_fn) (memcached_st *ptr, size_t nelem, const size_t elsize, void *context); ++.B void * (*memcached_calloc_fn)(memcached_st\fI\ *ptr\fP, size_t\fI\ nelem\fP, const size_t\fI\ elsize\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to specify your own memory allocators, optimized +for your application. This enables libmemcached to be used inside of applications that have their own malloc implementation. +.sp - \fBmemcached_set_memory_allocators()\fP is used to set the memory ++\fI\%memcached_set_memory_allocators()\fP is used to set the memory +allocators used by the memcached instance specified by ptr. Please note that +you cannot override only one of the memory allocators, you have to specify a +complete new set if you want to override one of them. All of the memory +allocation functions should behave as specified in the C99 standard. Specify +NULL as all functions to reset them to the default values. +.sp - \fBmemcached_get_memory_allocators()\fP is used to get the currently used ++\fI\%memcached_get_memory_allocators()\fP is used to get the currently used +memory allocators by a mamcached handle. +.sp - \fBmemcached_get_memory_allocators_context()\fP returns the void * that - was passed in during the call to \fBmemcached_set_memory_allocators()\fP. ++\fI\%memcached_get_memory_allocators_context()\fP returns the void * that ++was passed in during the call to \fI\%memcached_set_memory_allocators()\fP. +.sp +The first argument to the memory allocator functions is a pointer to a +memcached structure, the is passed as const and you will need to clone +it in order to make use of any operation which would modify it. +.SH NOTES +.sp +In version 0.38 all functions were modified to have a context void pointer +passed to them. This was so that customer allocators could have their +own space for memory. +.SH RETURN +.sp - \fBmemcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP ++\fI\%memcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP +upon success, and \fBMEMCACHED_FAILURE\fP if you don\(aqt pass a complete set +of function pointers. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_get_sasl_callbacks.3 index aa4f6c41,00000000..2273f07d mode 100644,000000..100644 --- a/docs/man/memcached_get_sasl_callbacks.3 +++ b/docs/man/memcached_get_sasl_callbacks.3 @@@ -1,94 -1,0 +1,92 @@@ - .TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_get_sasl_callbacks \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B void memcached_set_sasl_callbacks(memcached_st\fI\ *ptr\fP, const sasl_callback_t\fI\ *callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) ++.B memcached_return_t memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) ++.B memcached_return_t memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to plug in your own callbacks function used by +libsasl to perform SASL authentication. +.sp +Please note that SASL requires the memcached binary protocol, and you have +to specify the callbacks before you connect to the server. +.sp +\fI\%memcached_set_sasl_auth_data()\fP is a helper function defining +the basic functionality for you, but it will store the username and password +in memory. If you choose to use this method you have to call +\fI\%memcached_destroy_sasl_auth_data\fP before calling +\fBmemcached_free\fP to avoid a memory leak. You should NOT call +\fI\%memcached_destroy_sasl_auth_data\fP if you specify your own callback +function with \fI\%memcached_set_sasl_callbacks()\fP. - .sp - You as a client user have to initialize libsasl by using \fBsasl_client_init\fP before enabling it in libmemcached, and you have to shut down libsasl by - calling \fBsasl_done()\fP when you are done using SASL from libmemcached. +.SH RETURN +.sp - \fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used - by this memcached handle. \fBmemcached_get_sasl_set_auth_data()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used by ++this memcached handle. \fI\%memcached_set_sasl_auth_data()\fP returns ++\fBMEMCACHED_SUCCESS\fP upon success. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_get_user_data.3 index 5944182a,00000000..760da247 mode 100644,000000..100644 --- a/docs/man/memcached_get_user_data.3 +++ b/docs/man/memcached_get_user_data.3 @@@ -1,76 -1,0 +1,84 @@@ - .TH "MEMCACHED_GET_USER_DATA" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_GET_USER_DATA" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_get_user_data \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manage user specific data +.SH LIBRARY +.sp +C Client Library for memcached (libmemcached, \-lmemcached) +.SH SYNOPSIS +.sp +.nf +.ft C - #include - - void *memcached_get_user_data (memcached_st *ptr); + - void *memcached_set_user_data (memcached_st *ptr, void *data); +.ft P +.fi ++.sp ++#include ++.INDENT 0.0 ++.TP ++.B void *memcached_get_user_data(memcached_st\fI\ *ptr\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B void *memcached_set_user_data(memcached_st\fI\ *ptr\fP, void\fI\ *data\fP) ++.UNINDENT ++.sp ++Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to store a pointer to a user specific data inside +the memcached_st structure. +.sp - \fBmemcached_set_user_data()\fP is used to set the user specific data in the ++\fI\%memcached_set_user_data()\fP is used to set the user specific data in the +\fBmemcached_st\fP structure. +.sp - \fBmemcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure. ++\fI\%memcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure. +.SH RETURN +.sp - \fBmemcached_set_user_data()\fP returns the previous value of the user specific data. ++\fI\%memcached_set_user_data()\fP returns the previous value of the user specific data. +.sp - \fBmemcached_get_user_data()\fP returns the current value uf the user specific data. ++\fI\%memcached_get_user_data()\fP returns the current value uf the user specific data. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_increment.3 index 62e3c183,00000000..a0d89e67 mode 100644,000000..100644 --- a/docs/man/memcached_increment.3 +++ b/docs/man/memcached_increment.3 @@@ -1,124 -1,0 +1,123 @@@ - .TH "MEMCACHED_INCREMENT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_INCREMENT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_increment \- Incrementing and Decrementing Values +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fImemcached(1)\fP servers have the ability to increment and decrement keys +(overflow and underflow are not detected). This gives you the ability to use +memcached to generate shared sequences of values. +.sp - memcached_increment() takes a key and keylength and increments the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_increment takes a key and keylength and increments the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement() takes a key and keylength and decrements the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_decrement takes a key and keylength and decrements the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_with_initial() takes a key and keylength and increments ++memcached_increment_with_initial takes a key and keylength and increments +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement_with_initial() takes a key and keylength and decrements ++memcached_decrement_with_initial takes a key and keylength and decrements +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_by_key(), memcached_decrement_by_key(), - memcached_increment_with_initial_by_key(), and - memcached_decrement_with_initial_by_key() are master key equivalents of the - above. ++\fI\%memcached_increment_by_key()\fP, \fI\%memcached_decrement_by_key()\fP, ++\fI\%memcached_increment_with_initial_by_key()\fP, and ++\fI\%memcached_decrement_with_initial_by_key()\fP are master key equivalents of the above. +.SH RETURN +.sp - A value of type \fBmemcached_return_t\fP is returned. ++A value of type \fBmemcached_return_t\fP is returned. +On success that value will be \fBMEMCACHED_SUCCESS\fP. - Use memcached_strerror() to translate this value to a printable string. ++Use memcached_strerror to translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_increment_with_initial.3 index 8a243d58,00000000..d7e4960f mode 100644,000000..100644 --- a/docs/man/memcached_increment_with_initial.3 +++ b/docs/man/memcached_increment_with_initial.3 @@@ -1,124 -1,0 +1,123 @@@ - .TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_increment_with_initial \- Incrementing and Decrementing Values +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement (memcached_st *ptr, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial (memcached_st *ptr, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_increment_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, unsigned int offset, uint64_t *value); ++.B memcached_return_t memcached_decrement_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint32_t\fI\ offset\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_increment_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_increment_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_decrement_with_initial_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, uint64_t offset, uint64_t initial, time_t expiration, uint64_t *value); ++.B memcached_return_t memcached_decrement_with_initial_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, uint64_t\fI\ offset\fP, uint64_t\fI\ initial\fP, time_t\fI\ expiration\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fImemcached(1)\fP servers have the ability to increment and decrement keys +(overflow and underflow are not detected). This gives you the ability to use +memcached to generate shared sequences of values. +.sp - memcached_increment() takes a key and keylength and increments the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_increment takes a key and keylength and increments the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement() takes a key and keylength and decrements the value by - the offset passed to it. The value is then returned via the unsigned int ++memcached_decrement takes a key and keylength and decrements the value by ++the offset passed to it. The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_with_initial() takes a key and keylength and increments ++memcached_increment_with_initial takes a key and keylength and increments +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_decrement_with_initial() takes a key and keylength and decrements ++memcached_decrement_with_initial takes a key and keylength and decrements +the value by the offset passed to it. If the object specified by key does +not exist, one of two things may happen: If the expiration value is +MEMCACHED_EXPIRATION_NOT_ADD, the operation will fail. For all other +expiration values, the operation will succeed by seeding the value for that +key with a initial value to expire with the provided expiration time. The - flags will be set to zero.The value is then returned via the unsigned int ++flags will be set to zero.The value is then returned via the uint32_t +value pointer you pass to it. +.sp - memcached_increment_by_key(), memcached_decrement_by_key(), - memcached_increment_with_initial_by_key(), and - memcached_decrement_with_initial_by_key() are master key equivalents of the - above. ++\fI\%memcached_increment_by_key()\fP, \fI\%memcached_decrement_by_key()\fP, ++\fI\%memcached_increment_with_initial_by_key()\fP, and ++\fI\%memcached_decrement_with_initial_by_key()\fP are master key equivalents of the above. +.SH RETURN +.sp - A value of type \fBmemcached_return_t\fP is returned. ++A value of type \fBmemcached_return_t\fP is returned. +On success that value will be \fBMEMCACHED_SUCCESS\fP. - Use memcached_strerror() to translate this value to a printable string. ++Use memcached_strerror to translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_last_error_message.3 index 8606936c,00000000..50473f41 mode 100644,000000..100644 --- a/docs/man/memcached_last_error_message.3 +++ b/docs/man/memcached_last_error_message.3 @@@ -1,64 -1,0 +1,64 @@@ - .TH "MEMCACHED_LAST_ERROR_MESSAGE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_LAST_ERROR_MESSAGE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_last_error_message \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B const char *memcached_last_error_message(memcached_st *); ++.B const char *memcached_last_error_message(memcached_st\fI\ *\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_last_error_message()\fP is used to return the last error ++\fI\%memcached_last_error_message()\fP is used to return the last error +message that the server responded too. If this error came from a specific +server, its hostname and port will be provided in the error message. +.SH RETURN +.sp - memcached_last_error_message() returns a const char* which does not need to be ++memcached_last_error_message returns a const char* which does not need to be +de\-allocated. If no error has occurred then it will return NULL. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_lib_version.3 index 7232334f,00000000..13e58b06 mode 100644,000000..100644 --- a/docs/man/memcached_lib_version.3 +++ b/docs/man/memcached_lib_version.3 @@@ -1,76 -1,0 +1,76 @@@ - .TH "MEMCACHED_LIB_VERSION" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_LIB_VERSION" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_lib_version \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B const char * memcached_lib_version(void) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_version(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_lib_version()\fP is used to return a simple version string representing the libmemcached version (client library version, not server version) +.sp +\fI\%memcached_version()\fP is used to set the major, minor, and micro versions of each memcached server being used by the memcached_st connection structure. It returns the memcached server return code. +.SH RETURN +.sp +\fI\%memcached_lib_version()\fP returns a string with the version of the libmemcached driver. +.sp - A value of \fBmemcached_return_t\fP is returned from :c:func:\(aqmemcached_version()\(aq ++A value of \fBmemcached_return_t\fP is returned from :c:func:\(aqmemcached_version\(aq +.sp +On success that value will be \fBMEMCACHED_SUCCESS\fP. +.sp +If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP()\fP behavior set, the value \fBMEMCACHED_NOT_SUPPORTED\fP will be returned. +.sp +Use \fBmemcached_strerror()\fP to translate this value to +a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_memory_allocators.3 index 441cbbfa,00000000..dc8dd5bf mode 100644,000000..100644 --- a/docs/man/memcached_memory_allocators.3 +++ b/docs/man/memcached_memory_allocators.3 @@@ -1,112 -1,0 +1,112 @@@ - .TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_memory_allocators \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manage memory allocator functions +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_memory_allocators (memcached_st *ptr, memcached_malloc_fn mem_malloc, memcached_free_fn mem_free, memcached_realloc_fn mem_realloc, memcached_calloc_fn mem_calloc, void *context); ++.B memcached_return_t memcached_set_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ mem_calloc\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_get_memory_allocators (memcached_st *ptr, memcached_malloc_fn *mem_malloc, memcached_free_fn *mem_free, memcached_realloc_fn *mem_realloc, memcached_calloc_fn *mem_calloc); ++.B void memcached_get_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ *mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ *mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ *mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ *mem_calloc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * memcached_get_memory_allocators_context(const memcached_st *ptr); ++.B void * memcached_get_memory_allocators_context(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_malloc_fn) (memcached_st *ptr, const size_t size, void *context); ++.B void * (*memcached_malloc_fn)(memcached_st\fI\ *ptr\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_realloc_fn) (memcached_st *ptr, void *mem, const size_t size, void *context); ++.B void * (*memcached_realloc_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void (*memcached_free_fn) (memcached_st *ptr, void *mem, void *context); ++.B void (*memcached_free_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_calloc_fn) (memcached_st *ptr, size_t nelem, const size_t elsize, void *context); ++.B void * (*memcached_calloc_fn)(memcached_st\fI\ *ptr\fP, size_t\fI\ nelem\fP, const size_t\fI\ elsize\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to specify your own memory allocators, optimized +for your application. This enables libmemcached to be used inside of applications that have their own malloc implementation. +.sp - \fBmemcached_set_memory_allocators()\fP is used to set the memory ++\fI\%memcached_set_memory_allocators()\fP is used to set the memory +allocators used by the memcached instance specified by ptr. Please note that +you cannot override only one of the memory allocators, you have to specify a +complete new set if you want to override one of them. All of the memory +allocation functions should behave as specified in the C99 standard. Specify +NULL as all functions to reset them to the default values. +.sp - \fBmemcached_get_memory_allocators()\fP is used to get the currently used ++\fI\%memcached_get_memory_allocators()\fP is used to get the currently used +memory allocators by a mamcached handle. +.sp - \fBmemcached_get_memory_allocators_context()\fP returns the void * that - was passed in during the call to \fBmemcached_set_memory_allocators()\fP. ++\fI\%memcached_get_memory_allocators_context()\fP returns the void * that ++was passed in during the call to \fI\%memcached_set_memory_allocators()\fP. +.sp +The first argument to the memory allocator functions is a pointer to a +memcached structure, the is passed as const and you will need to clone +it in order to make use of any operation which would modify it. +.SH NOTES +.sp +In version 0.38 all functions were modified to have a context void pointer +passed to them. This was so that customer allocators could have their +own space for memory. +.SH RETURN +.sp - \fBmemcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP ++\fI\%memcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP +upon success, and \fBMEMCACHED_FAILURE\fP if you don\(aqt pass a complete set +of function pointers. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_mget.3 index 518e255d,00000000..dd0acf43 mode 100644,000000..100644 --- a/docs/man/memcached_mget.3 +++ b/docs/man/memcached_mget.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_MGET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_MGET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_mget \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_mget_by_key.3 index 3b0b841a,00000000..58a28aeb mode 100644,000000..100644 --- a/docs/man/memcached_mget_by_key.3 +++ b/docs/man/memcached_mget_by_key.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_MGET_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_MGET_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_mget_by_key \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_mget_execute.3 index 6dfdb611,00000000..15d00c7b mode 100644,000000..100644 --- a/docs/man/memcached_mget_execute.3 +++ b/docs/man/memcached_mget_execute.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_MGET_EXECUTE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_MGET_EXECUTE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_mget_execute \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_mget_execute_by_key.3 index a9b3667e,00000000..019b251e mode 100644,000000..100644 --- a/docs/man/memcached_mget_execute_by_key.3 +++ b/docs/man/memcached_mget_execute_by_key.3 @@@ -1,157 -1,0 +1,161 @@@ - .TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_mget_execute_by_key \- Retrieving data from the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st * memcached_fetch_result(memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B char * memcached_get_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, size_t\fI\ *value_length\fP, uint32_t\fI\ *flags\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_mget_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_fetch_execute(memcached_st\fI\ *ptr\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute(memcached_st\fI\ *ptr\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, memcached_execute_fn\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.B memcached_return_t memcached_mget_execute_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char * const\fI\ *keys\fP, const size_t\fI\ *key_length\fP, size_t\fI\ number_of_keys\fP, \fI\%memcached_execute_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t (*memcached_execute_fn)(const memcached_st\fI\ *ptr\fP, memcached_result_st\fI\ *result\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_get()\fP is used to fetch an individual value from the server. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of +the object, and a \fBmemcached_return_t\fP pointer to hold any error. The +object will be returned upon success and NULL will be returned on failure. Any +object returned by \fI\%memcached_get()\fP must be released by the caller +application. +.sp +\fI\%memcached_mget()\fP is used to select multiple keys at once. For +multiple key operations it is always faster to use this function. This function always works asynchronously. +.sp +To retrieve data after a successful execution of \fI\%memcached_mget()\fP, you will need to +call \fI\%memcached_fetch_result()\fP. You should continue to call this function until +it returns a NULL (i.e. no more values). If you need to quit in the middle of a +\fI\%memcached_mget()\fP call, you can execute a \fBmemcached_quit()\fP, those this is not required. +.sp +\fI\%memcached_fetch_result()\fP is used to fetch an individual value from the server. \fI\%memcached_mget()\fP must always be called before using this method. +You must pass in a key and its length to fetch the object. You must supply +three pointer variables which will give you the state of the returned +object. A \fBuint32_t\fP pointer to contain whatever flags you stored with the value, a \fBsize_t\fP pointer which will be filled with size of of the +object, and a \fBmemcached_return_t\fP pointer to hold any error. The - object will be returned upon success and NULL will be returned on failure. \fBMEMCACHD_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. ++object will be returned upon success and NULL will be returned on failure. \fBMEMCACHED_END\fP is returned by the *error value when all objects that have been found are returned. The final value upon \fBMEMCACHED_END\fP is null. +.sp +\fI\%memcached_fetch_result()\fP is used to return a \fBmemcached_result_st\fP structure from a memcached server. The result object is forward compatible +with changes to the server. For more information please refer to the +\fBmemcached_result_st\fP help. This function will dynamically allocate a +result structure for you if you do not pass one to the function. +.sp +\fI\%memcached_fetch_execute()\fP is a callback function for result sets. +Instead of returning the results to you for processing, it passes each of the +result sets to the list of functions you provide. It passes to the function +a \fBmemcached_st\fP that can be cloned for use in the called +function (it can not be used directly). It also passes a result set which does +not need to be freed. Finally it passes a "context". This is just a pointer to +a memory reference you supply the calling function. Currently only one value +is being passed to each function call. In the future there will be an option +to allow this to be an array. +.sp +\fI\%memcached_mget_execute()\fP and \fI\%memcached_mget_execute_by_key()\fP +is similar to \fI\%memcached_mget()\fP, but it may trigger the supplied +callbacks with result sets while sending out the queries. If you try to +perform a really large multiget with \fI\%memcached_mget()\fP you may +encounter a deadlock in the OS kernel (it will fail to write data to the +socket because the input buffer is full). \fI\%memcached_mget_execute()\fP +solves this problem by processing some of the results before continuing +sending out requests. Please note that this function is only available in +the binary protocol. +.sp +\fI\%memcached_get_by_key()\fP and \fI\%memcached_mget_by_key()\fP behave +in a similar nature as \fI\%memcached_get()\fP and \fI\%memcached_mget()\fP. +The difference is that they take a master key that is used for determining +which server an object was stored if key partitioning was used for storage. +.sp +All of the above functions are not tested when the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP has been set. Executing any of these +functions with this behavior on will result in \fBMEMCACHED_NOT_SUPPORTED\fP being returned, or for those functions which do not return a \fBmemcached_return_t\fP, the error function parameter will be set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.SH RETURN +.sp +All objects retrieved via \fI\%memcached_get()\fP or \fI\%memcached_get_by_key()\fP must be freed with \fIfree(3)\fP. +.sp +\fI\%memcached_get()\fP will return NULL on +error. You must look at the value of error to determine what the actual error +was. +.sp +\fI\%memcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if +all keys were successful. \fBMEMCACHED_NOTFOUND\fP will be return if no +keys at all were found. +.sp +\fI\%memcached_fetch_result()\fP sets error +to \fBMEMCACHED_END\fP upon successful conclusion. +\fBMEMCACHED_NOTFOUND\fP will be return if no keys at all were found. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool.3 index bf8dc33e,00000000..95d387d2 mode 100644,000000..100644 --- a/docs/man/memcached_pool.3 +++ b/docs/man/memcached_pool.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_behavior_get.3 index 18ebe44a,00000000..d2621007 mode 100644,000000..100644 --- a/docs/man/memcached_pool_behavior_get.3 +++ b/docs/man/memcached_pool_behavior_get.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_behavior_get \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_behavior_set.3 index 67e1bd4d,00000000..99c2877a mode 100644,000000..100644 --- a/docs/man/memcached_pool_behavior_set.3 +++ b/docs/man/memcached_pool_behavior_set.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_behavior_set \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_create.3 index 38cf6e09,00000000..c58ad73a mode 100644,000000..100644 --- a/docs/man/memcached_pool_create.3 +++ b/docs/man/memcached_pool_create.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_CREATE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_CREATE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_create \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_destroy.3 index 700b18ea,00000000..a2da291c mode 100644,000000..100644 --- a/docs/man/memcached_pool_destroy.3 +++ b/docs/man/memcached_pool_destroy.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_DESTROY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_DESTROY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_destroy \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_fetch.3 index 5eadc0e3,00000000..892b15aa mode 100644,000000..100644 --- a/docs/man/memcached_pool_fetch.3 +++ b/docs/man/memcached_pool_fetch.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_FETCH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_FETCH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_fetch \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_pop.3 index f0ebde6c,00000000..a6ce4faa mode 100644,000000..100644 --- a/docs/man/memcached_pool_pop.3 +++ b/docs/man/memcached_pool_pop.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_POP" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_POP" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_pop \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_push.3 index 0192df63,00000000..98d4a402 mode 100644,000000..100644 --- a/docs/man/memcached_pool_push.3 +++ b/docs/man/memcached_pool_push.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_PUSH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_PUSH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_push \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_release.3 index 7986cc51,00000000..1833131a mode 100644,000000..100644 --- a/docs/man/memcached_pool_release.3 +++ b/docs/man/memcached_pool_release.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_RELEASE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_RELEASE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_release \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_pool_st.3 index 2a0291c1,00000000..e0bd5c50 mode 100644,000000..100644 --- a/docs/man/memcached_pool_st.3 +++ b/docs/man/memcached_pool_st.3 @@@ -1,140 -1,0 +1,140 @@@ - .TH "MEMCACHED_POOL_ST" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_POOL_ST" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_pool_st \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_pool_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP) +.UNINDENT +.sp +Deprecated since version 0.46: Use \fI\%memcached_pool()\fP +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP) +.UNINDENT +.sp - Deprecated since version 0.53: Use \fBmemcached_pool_fetch()\fP ++Deprecated since version 0.53: Use \fI\%memcached_pool_fetch()\fP +.INDENT 0.0 +.TP - .B memcached_st* memcached_pool_fetch(memcached_pool_st*, struct timespec* relative_time, memcached_return_t* rc); ++.B memcached_st* memcached_pool_fetch(\fI\%memcached_pool_st\fP*, struct timespec*\fI\ relative_time\fP, memcached_return_t*\fI\ rc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_pop() ++New in version 0.53: Synonym for memcached_pool_pop +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP) +.UNINDENT +.sp +Deprecated since version 0.53: Use \fI\%memcached_pool_push()\fP +.INDENT 0.0 +.TP - .B memcached_return_t memcached_pool_release(memcached_pool_st* pool, memcached_st* mmc); ++.B memcached_return_t memcached_pool_release(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st*\fI\ mmc\fP) +.UNINDENT +.sp - New in version 0.53: Synonym for memcached_pool_push(). ++New in version 0.53: Synonym for memcached_pool_push. +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_pool()\fP is used to create a connection pool of objects you +may use to remove the overhead of using memcached_clone for short lived +\fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string. +.sp +\fI\%memcached_pool_destroy()\fP is used to destroy the connection pool +created with \fI\%memcached_pool_create()\fP and release all allocated +resources. It will return the pointer to the \fBmemcached_st\fP structure +passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned.. +.sp - \fBmemcached_pool_fetch()\fP is used to fetch a connection structure from the ++\fI\%memcached_pool_fetch()\fP is used to fetch a connection structure from the +connection pool. The relative_time argument specifies if the function should +block and wait for a connection structure to be available if we try +to exceed the maximum size. You need to specify time in relative time. +.sp - \fBmemcached_pool_release()\fP is used to return a connection structure back to the pool. ++\fI\%memcached_pool_release()\fP is used to return a connection structure back to the pool. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool. +.sp - Both \fBmemcached_pool_release()\fP and \fBmemcached_pool_fetch()\fP are thread safe. ++Both \fI\%memcached_pool_release()\fP and \fI\%memcached_pool_fetch()\fP are thread safe. +.SH RETURN +.sp +\fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL. +.sp +\fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied). +.sp - \fBmemcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_pool_release()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. +.sp +If any methods returns MEMCACHED_IN_PROGRESS then a lock on the pool could not be obtained. If any of the parameters passed to any of these functions is invalid, MEMCACHED_INVALID_ARGUMENTS will be returned. +.sp - memcached_pool_fetch() may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. ++memcached_pool_fetch may return MEMCACHED_TIMEOUT if a timeout occurs while waiting for a free memcached_st. MEMCACHED_NOTFOUND if no memcached_st was available. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_prepend.3 index 239f60a9,00000000..c17f1342 mode 100644,000000..100644 --- a/docs/man/memcached_prepend.3 +++ b/docs/man/memcached_prepend.3 @@@ -1,119 -1,0 +1,119 @@@ - .TH "MEMCACHED_PREPEND" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_PREPEND" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_prepend \- Appending to or Prepending to data on the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Appending or Prepending to data on the server +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_return_t memcached_prepend(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_append(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_prepend_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_prepend_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_append_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_append_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_prepend()\fP and memcached_append are used to +modify information on a server. All methods take a key, and its length to +store the object. Keys are currently limited to 250 characters when using +either a version of memcached which is 1.4 or below, or when using the text +protocol. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is +meant to be used as a bitmap). "flags" is a 4byte space that is stored +alongside of the main value. Many sub libraries make use of this field, +so in most cases users should avoid making use of it. +.sp +\fI\%memcached_prepend()\fP places a segment of data before the last piece +of data stored. Currently expiration and key are not used in the server. +.sp +\fI\%memcached_append()\fP places a segment of data at the end of the last +piece of data stored. Currently expiration and key are not used in the server. +.sp - \fBmemcached_prepend_by_key()\fP and - \fBmemcached_append_by_key_by_key()\fP methods both behave in a similar ++\fI\%memcached_prepend_by_key()\fP and ++\fI\%memcached_append_by_key()\fP methods both behave in a similar +method as the non key methods. The difference is that they use their +group_key parameter to map objects to particular servers. +.sp +If you are looking for performance, \fBmemcached_set()\fP with non\-blocking +IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using +these operations with this behavior on, there are limits to the size of the +payload being sent to the server. The reason for these limits is that the +Memcached Server does not allow multi\-datagram requests +and the current server implementation sets a datagram size to 1400 bytes. Due +to protocol overhead, the actual limit of the user supplied data is less than +1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, +\fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, +flags and expiry combined may not exceed 1368 bytes. When running with the +ASCII protocol, the exact limit fluctuates depending on which function is +being executed and whether the function is a cas operation or not. For +non\-cas ASCII set operations, there are at least 1335 bytes available +to split among the key, key_prefix, and value; for cas ASCII operations +there are at least 1318 bytes available to split among the key, key_prefix +and value. If the total size of the command, including overhead, exceeds +1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_set(3)\fP \fImemcached_add(3)\fP \fImemcached_cas(3)\fP \fImemcached_replace(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_prepend_by_key.3 index a9ff2269,00000000..02b4f82b mode 100644,000000..100644 --- a/docs/man/memcached_prepend_by_key.3 +++ b/docs/man/memcached_prepend_by_key.3 @@@ -1,119 -1,0 +1,119 @@@ - .TH "MEMCACHED_PREPEND_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_PREPEND_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_prepend_by_key \- Appending to or Prepending to data on the server +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Appending or Prepending to data on the server +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_return_t memcached_prepend(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_append(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_prepend_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_prepend_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_append_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_append_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_prepend()\fP and memcached_append are used to +modify information on a server. All methods take a key, and its length to +store the object. Keys are currently limited to 250 characters when using +either a version of memcached which is 1.4 or below, or when using the text +protocol. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is +meant to be used as a bitmap). "flags" is a 4byte space that is stored +alongside of the main value. Many sub libraries make use of this field, +so in most cases users should avoid making use of it. +.sp +\fI\%memcached_prepend()\fP places a segment of data before the last piece +of data stored. Currently expiration and key are not used in the server. +.sp +\fI\%memcached_append()\fP places a segment of data at the end of the last +piece of data stored. Currently expiration and key are not used in the server. +.sp - \fBmemcached_prepend_by_key()\fP and - \fBmemcached_append_by_key_by_key()\fP methods both behave in a similar ++\fI\%memcached_prepend_by_key()\fP and ++\fI\%memcached_append_by_key()\fP methods both behave in a similar +method as the non key methods. The difference is that they use their +group_key parameter to map objects to particular servers. +.sp +If you are looking for performance, \fBmemcached_set()\fP with non\-blocking +IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the +\fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using +these operations with this behavior on, there are limits to the size of the +payload being sent to the server. The reason for these limits is that the +Memcached Server does not allow multi\-datagram requests +and the current server implementation sets a datagram size to 1400 bytes. Due +to protocol overhead, the actual limit of the user supplied data is less than +1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, +\fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, +flags and expiry combined may not exceed 1368 bytes. When running with the +ASCII protocol, the exact limit fluctuates depending on which function is +being executed and whether the function is a cas operation or not. For +non\-cas ASCII set operations, there are at least 1335 bytes available +to split among the key, key_prefix, and value; for cas ASCII operations +there are at least 1318 bytes available to split among the key, key_prefix +and value. If the total size of the command, including overhead, exceeds +1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_set(3)\fP \fImemcached_add(3)\fP \fImemcached_cas(3)\fP \fImemcached_replace(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_quit.3 index e757dc04,00000000..d8e797bd mode 100644,000000..100644 --- a/docs/man/memcached_quit.3 +++ b/docs/man/memcached_quit.3 @@@ -1,73 -1,0 +1,73 @@@ - .TH "MEMCACHED_QUIT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_QUIT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_quit \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B void memcached_quit (memcached_st *ptr); ++.B void memcached_quit(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_quit()\fP will disconnect you from all currently connected ++\fI\%memcached_quit()\fP will disconnect you from all currently connected +servers. It will also reset the state of the connection (ie, any \fBmemcached_fetch()\fP you are in the middle of will be terminated). This function is +called automatically when you call \fBmemcached_free()\fP on the \fBmemcached_st\fP structure. +.sp +You do not need to call this on your own. All operations to change server +hashes and parameters will handle connections to the server for you. This +function is provided mainly so that you can timeout your connections or +reset connections during the middle of a \fBmemcached_fetch()\fP. +.SH RETURN +.sp - A value of type \fBmemcached_return\fP is returned - On success that value will be \fBMEMCACHED_SUCCESS\fP. - Use \fBmemcached_strerror()\fP to translate this value to a printable string. ++A value of type \fBmemcached_return_t\fP is returned On success that value ++will be \fBMEMCACHED_SUCCESS\fP. Use \fBmemcached_strerror()\fP to ++translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_replace.3 index eb0d1bf2,00000000..6e7a66d6 mode 100644,000000..100644 --- a/docs/man/memcached_replace.3 +++ b/docs/man/memcached_replace.3 @@@ -1,121 -1,0 +1,121 @@@ - .TH "MEMCACHED_REPLACE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_REPLACE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_replace \- Storing and Replacing Data +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_set()\fP, \fBmemcached_add()\fP, and \fBmemcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you ++\fI\%memcached_set()\fP, \fI\%memcached_add()\fP, and \fI\%memcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you +store the object. Keys are currently limited to 250 characters by the +memcached(1) server. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is meant to be used as a bitmap). "flags" is a 4byte space that is stored alongside of the main value. Many sub libraries make use of this field, so in most cases users should avoid making use of it. +.sp - \fBmemcached_set()\fP will write an object to the server. If an object ++\fI\%memcached_set()\fP will write an object to the server. If an object +already exists it will overwrite what is in the server. If the object does not +exist it will be written. If you are using the non\-blocking mode this function +will always return true unless a network error occurs. +.sp - \fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. ++\fI\%memcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. +.sp - \fBmemcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. ++\fI\%memcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. +.sp +\fBmemcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result by +calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) structure. At the point +that this note was written cas is still buggy in memached. Turning on tests - for it in libmemcached(3) is optional. Please see memcached_set() for ++for it in libmemcached(3) is optional. Please see memcached_set for +information on how to do this. +.sp - \fBmemcached_set_by_key()\fP, \fBmemcached_add_by_key()\fP, and \fBmemcached_replace_by_key()\fP methods all behave in a similar method as the non ++\fI\%memcached_set_by_key()\fP, \fI\%memcached_add_by_key()\fP, and \fI\%memcached_replace_by_key()\fP methods all behave in a similar method as the non +key methods. The difference is that they use their group_key parameter to map +objects to particular servers. +.sp - If you are looking for performance, \fBmemcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. ++If you are looking for performance, \fI\%memcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. +The reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user supplied data is less than 1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, \fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, flags and expiry combined may not +exceed 1368 bytes. When running with the ASCII protocol, the exact limit fluctuates depending on which function is being executed and whether the function is a cas operation or not. For non\-cas ASCII set operations, there are at least +1335 bytes available to split among the key, key_prefix, and value; for cas +ASCII operations there are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, +exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable string. +.sp - For \fBmemcached_replace()\fP and \fBmemcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. ++For \fI\%memcached_replace()\fP and \fI\%memcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_prepend(3)\fP \fImemcached_cas(3)\fP \fImemcached_append(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_replace_by_key.3 index 173fb103,00000000..51b86543 mode 100644,000000..100644 --- a/docs/man/memcached_replace_by_key.3 +++ b/docs/man/memcached_replace_by_key.3 @@@ -1,121 -1,0 +1,121 @@@ - .TH "MEMCACHED_REPLACE_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_REPLACE_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_replace_by_key \- Storing and Replacing Data +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_set()\fP, \fBmemcached_add()\fP, and \fBmemcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you ++\fI\%memcached_set()\fP, \fI\%memcached_add()\fP, and \fI\%memcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you +store the object. Keys are currently limited to 250 characters by the +memcached(1) server. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is meant to be used as a bitmap). "flags" is a 4byte space that is stored alongside of the main value. Many sub libraries make use of this field, so in most cases users should avoid making use of it. +.sp - \fBmemcached_set()\fP will write an object to the server. If an object ++\fI\%memcached_set()\fP will write an object to the server. If an object +already exists it will overwrite what is in the server. If the object does not +exist it will be written. If you are using the non\-blocking mode this function +will always return true unless a network error occurs. +.sp - \fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. ++\fI\%memcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. +.sp - \fBmemcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. ++\fI\%memcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. +.sp +\fBmemcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result by +calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) structure. At the point +that this note was written cas is still buggy in memached. Turning on tests - for it in libmemcached(3) is optional. Please see memcached_set() for ++for it in libmemcached(3) is optional. Please see memcached_set for +information on how to do this. +.sp - \fBmemcached_set_by_key()\fP, \fBmemcached_add_by_key()\fP, and \fBmemcached_replace_by_key()\fP methods all behave in a similar method as the non ++\fI\%memcached_set_by_key()\fP, \fI\%memcached_add_by_key()\fP, and \fI\%memcached_replace_by_key()\fP methods all behave in a similar method as the non +key methods. The difference is that they use their group_key parameter to map +objects to particular servers. +.sp - If you are looking for performance, \fBmemcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. ++If you are looking for performance, \fI\%memcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. +The reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user supplied data is less than 1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, \fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, flags and expiry combined may not +exceed 1368 bytes. When running with the ASCII protocol, the exact limit fluctuates depending on which function is being executed and whether the function is a cas operation or not. For non\-cas ASCII set operations, there are at least +1335 bytes available to split among the key, key_prefix, and value; for cas +ASCII operations there are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, +exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable string. +.sp - For \fBmemcached_replace()\fP and \fBmemcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. ++For \fI\%memcached_replace()\fP and \fI\%memcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_prepend(3)\fP \fImemcached_cas(3)\fP \fImemcached_append(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_cas.3 index e07dfef9,00000000..ed87cd85 mode 100644,000000..100644 --- a/docs/man/memcached_result_cas.3 +++ b/docs/man/memcached_result_cas.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_CAS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_CAS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_cas \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_create.3 index 9bdd57af,00000000..0e2581c2 mode 100644,000000..100644 --- a/docs/man/memcached_result_create.3 +++ b/docs/man/memcached_result_create.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_CREATE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_CREATE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_create \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_flags.3 index ef4fe3f7,00000000..cd44b567 mode 100644,000000..100644 --- a/docs/man/memcached_result_flags.3 +++ b/docs/man/memcached_result_flags.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_FLAGS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_FLAGS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_flags \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_free.3 index ab22e7c0,00000000..95db83ae mode 100644,000000..100644 --- a/docs/man/memcached_result_free.3 +++ b/docs/man/memcached_result_free.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_FREE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_FREE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_free \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_key_length.3 index e030ff69,00000000..aec29622 mode 100644,000000..100644 --- a/docs/man/memcached_result_key_length.3 +++ b/docs/man/memcached_result_key_length.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_key_length \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_key_value.3 index a1a6456b,00000000..2f8b8734 mode 100644,000000..100644 --- a/docs/man/memcached_result_key_value.3 +++ b/docs/man/memcached_result_key_value.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_KEY_VALUE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_KEY_VALUE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_key_value \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_length.3 index d5bf6159,00000000..955618c6 mode 100644,000000..100644 --- a/docs/man/memcached_result_length.3 +++ b/docs/man/memcached_result_length.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_LENGTH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_LENGTH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_length \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_st.3 index 2f417c5b,00000000..3888859b mode 100644,000000..100644 --- a/docs/man/memcached_result_st.3 +++ b/docs/man/memcached_result_st.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_ST" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_ST" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_st \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_result_value.3 index cad744d2,00000000..e08cac9e mode 100644,000000..100644 --- a/docs/man/memcached_result_value.3 +++ b/docs/man/memcached_result_value.3 @@@ -1,154 -1,0 +1,155 @@@ - .TH "MEMCACHED_RESULT_VALUE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RESULT_VALUE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_result_value \- Working with result sets +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_result_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_result_st * memcached_result_create (memcached_st *ptr, memcached_result_st *result); ++.B \fI\%memcached_result_st\fP * memcached_result_create(memcached_st\fI\ *ptr\fP, \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_result_free (memcached_result_st *result); ++.B void memcached_result_free(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char * memcached_result_key_value (memcached_result_st *result); ++.B const char * memcached_result_key_value(\fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_key_length (const memcached_result_st *result); ++.B size_t memcached_result_key_length(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B const char *memcached_result_value (memcached_result_st *ptr); ++.B const char *memcached_result_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B size_t memcached_result_length (const memcached_result_st *ptr); ++.B size_t memcached_result_length(const \fI\%memcached_result_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_result_flags(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint64_t memcached_result_cas (const memcached_result_st *result); ++.B uint64_t memcached_result_cas(const \fI\%memcached_result_st\fP\fI\ *result\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_result_set_value(\fI\%memcached_result_st\fP\fI\ *ptr\fP, const char\fI\ *value\fP, size_t\fI\ length\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_flags(\fI\%memcached_result_st\fP\fI\ *ptr\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_result_set_expiration(\fI\%memcached_result_st\fP\fI\ *ptr\fP, time_t) +.UNINDENT +.sp +Compile and link with \-lmemcachedutil \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) can optionally return a \fI\%memcached_result_st\fP which +acts as a result object. The result objects have added benefits over the +character pointer returns, in that they are forward compatible with new +return items that future memcached servers may implement (the best current +example of this is the CAS return item). The structures can also be reused, +which will save on calls to malloc(3). It is suggested that you use result +objects over char * return functions. +.sp +The structure of \fI\%memcached_result_st\fP has been encapsulated, you should +not write code to directly access members of the structure. +.sp - \fBmemcached_result_create()\fP will either allocate memory for a ++\fI\%memcached_result_create()\fP will either allocate memory for a +\fI\%memcached_result_st\fP or will initialize a structure passed to it. +.sp - \fBmemcached_result_free()\fP will deallocate any memory attached to the ++\fI\%memcached_result_free()\fP will deallocate any memory attached to the +structure. If the structure was also allocated, it will deallocate it. +.sp - \fBmemcached_result_key_value()\fP returns the key value associated with the ++\fI\%memcached_result_key_value()\fP returns the key value associated with the +current result object. +.sp - \fBmemcached_result_key_length()\fP returns the key length associated with ++\fI\%memcached_result_key_length()\fP returns the key length associated with +the current result object. +.sp - \fBmemcached_result_value()\fP returns the result value associated with the ++\fI\%memcached_result_value()\fP returns the result value associated with the +current result object. +.sp - \fBmemcached_result_length()\fP returns the result length associated with ++\fI\%memcached_result_length()\fP returns the result length associated with +the current result object. +.sp +\fI\%memcached_result_flags()\fP returns the flags associated with the +current result object. +.sp - \fBmemcached_result_cas()\fP returns the cas associated with the ++\fI\%memcached_result_cas()\fP returns the cas associated with the +current result object. This value will only be available if the server +tests it. +.sp +\fI\%memcached_result_set_value()\fP takes a byte array and a size and sets +the result to this value. This function is used for trigger responses. +.sp - \fBvoid memcached_result_set_flags()\fP takes a result structure and stores - a new value for the flags field. ++\fI\%memcached_result_set_flags()\fP takes a result structure and stores a new ++value for the flags field. +.sp - \fBvoid memcached_result_set_expiration(A)()\fP takes a result structure and stores a new value for the expiration field (this is only used by read - through triggers). ++\fI\%memcached_result_set_expiration()\fP takes a result structure and stores ++a new value for the expiration field (this is only used by read through ++triggers). +.sp +You may wish to avoid using memcached_result_create(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp +Varies, see particular functions. All structures must have - \fBmemcached_result_free()\fP called on them for cleanup purposes. Failure ++\fI\%memcached_result_free()\fP called on them for cleanup purposes. Failure +to do this will result in leaked memory. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_return_t.3 index 43f39eec,00000000..95d7d554 mode 100644,000000..100644 --- a/docs/man/memcached_return_t.3 +++ b/docs/man/memcached_return_t.3 @@@ -1,265 -1,0 +1,170 @@@ - .TH "MEMCACHED_RETURN_T" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_RETURN_T" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_return_t \- Return type values +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_return_t +.UNINDENT +.INDENT 0.0 +.TP - .B const char *libmemcached_strerror(libmemcached_return_t\fI\ rc\fP) ++.B const char *libmemcached_strerror(\fI\%memcached_return_t\fP\fI\ rc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B bool libmemcached_success(libmemcached_return_t\fI\ rc\fP) ++.B bool libmemcached_success(\fI\%memcached_return_t\fP\fI\ rc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B bool libmemcached_failure(libmemcached_return_t\fI\ rc\fP) ++.B bool libmemcached_failure(\fI\%memcached_return_t\fP\fI\ rc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B bool libmemcache_continue(libmemcached_return_t\fI\ rc\fP) - .UNINDENT - .sp - \fBmemcached_success()\fP return true if \fI\%MEMCACHED_SUCCESS\fP tested true. - .sp - \fBmemcached_failure()\fP return true if any value other then \fI\%MEMCACHED_SUCCESS\fP was provided. - .SS Libmemcached return types: - .INDENT 0.0 - .TP - .B MEMCACHED_SUCCESS - .UNINDENT - .sp - Success - .INDENT 0.0 - .TP - .B MEMCACHED_FAILURE ++.B bool libmemcache_continue(\fI\%memcached_return_t\fP\fI\ rc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B MEMCACHED_HOST_LOOKUP_FAILURE ++.B bool memcached_success(\fI\%memcached_return_t\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B MEMCACHED_CONNECTION_FAILURE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_CONNECTION_BIND_FAILURE ++.B bool memcached_failure(\fI\%memcached_return_t\fP) +.UNINDENT +.sp - Deprecated since version <0.30. - .INDENT 0.0 - .TP - .B MEMCACHED_WRITE_FAILURE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_READ_FAILURE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_UNKNOWN_READ_FAILURE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_PROTOCOL_ERROR - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_CLIENT_ERROR - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_SERVER_ERROR - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE - .UNINDENT ++\fI\%memcached_success()\fP return true if \fBMEMCACHED_SUCCESS\fP tested true. +.sp - Deprecated since version <0.30. - .INDENT 0.0 - .TP - .B MEMCACHED_DATA_EXISTS - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_DATA_DOES_NOT_EXIST - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_NOTSTORED - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_STORED - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_NOTFOUND - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_MEMORY_ALLOCATION_FAILURE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_PARTIAL_READ - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_SOME_ERRORS - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_NO_SERVERS - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_END - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_DELETED - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_VALUE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_STAT - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_ITEM - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_ERRNO - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_FAIL_UNIX_SOCKET - .UNINDENT ++\fI\%memcached_failure()\fP return true if any value other then \fBMEMCACHED_SUCCESS\fP was provided. ++.SS Libmemcached return types: +.sp - Deprecated since version <0.30. - .INDENT 0.0 - .TP - .B MEMCACHED_NOT_SUPPORTED - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_NO_KEY_PROVIDED - .UNINDENT ++\fBMEMCACHED_SUCCESS\fP +.sp - Deprecated since version <0.30: Use \fI\%MEMCACHED_BAD_KEY_PROVIDED\fP instead. - .INDENT 0.0 - .TP - .B MEMCACHED_FETCH_NOTFINISHED - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_TIMEOUT - Connection to server timed out. - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_BUFFERED - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_BAD_KEY_PROVIDED - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_INVALID_HOST_PROTOCOL - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_SERVER_MARKED_DEAD - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_UNKNOWN_STAT_KEY - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_E2BIG - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_INVALID_ARGUMENTS - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_KEY_TOO_BIG - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_AUTH_PROBLEM - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_AUTH_FAILURE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_AUTH_CONTINUE - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_PARSE_ERROR - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_PARSE_USER_ERROR - .UNINDENT - .INDENT 0.0 - .TP - .B MEMCACHED_DEPRECATED - .UNINDENT ++\fBMEMCACHED_FAILURE\fP ++.sp ++\fBMEMCACHED_HOST_LOOKUP_FAILURE\fP ++.sp ++\fBMEMCACHED_CONNECTION_FAILURE\fP ++.sp ++\fBMEMCACHED_CONNECTION_BIND_FAILURE\fP ++.sp ++\fBMEMCACHED_WRITE_FAILURE\fP ++.sp ++\fBMEMCACHED_READ_FAILURE\fP ++.sp ++\fBMEMCACHED_UNKNOWN_READ_FAILURE\fP ++.sp ++\fBMEMCACHED_PROTOCOL_ERROR\fP ++.sp ++\fBMEMCACHED_CLIENT_ERROR\fP ++.sp ++\fBMEMCACHED_SERVER_ERROR\fP ++.sp ++\fBMEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE\fP ++.sp ++\fBMEMCACHED_DATA_EXISTS\fP ++.sp ++\fBMEMCACHED_DATA_DOES_NOT_EXIST\fP ++.sp ++\fBMEMCACHED_NOTSTORED\fP ++.sp ++\fBMEMCACHED_STORED\fP ++.sp ++\fBMEMCACHED_NOTFOUND\fP ++.sp ++\fBMEMCACHED_MEMORY_ALLOCATION_FAILURE\fP ++.sp ++\fBMEMCACHED_PARTIAL_READ\fP ++.sp ++\fBMEMCACHED_SOME_ERRORS\fP ++.sp ++\fBMEMCACHED_NO_SERVERS\fP ++.sp ++\fBMEMCACHED_END\fP ++.sp ++\fBMEMCACHED_DELETED\fP ++.sp ++\fBMEMCACHED_VALUE\fP ++.sp ++\fBMEMCACHED_STAT\fP ++.sp ++\fBMEMCACHED_ITEM\fP ++.sp ++\fBMEMCACHED_ERRNO\fP ++.sp ++\fBMEMCACHED_FAIL_UNIX_SOCKET\fP ++.sp ++\fBMEMCACHED_NOT_SUPPORTED\fP ++.sp ++\fBMEMCACHED_NO_KEY_PROVIDED\fP ++.sp ++\fBMEMCACHED_FETCH_NOTFINISHED\fP ++.sp ++\fBMEMCACHED_TIMEOUT\fP ++.sp ++\fBMEMCACHED_BUFFERED\fP ++.sp ++\fBMEMCACHED_BAD_KEY_PROVIDED\fP ++.sp ++\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP ++.sp ++\fBMEMCACHED_SERVER_MARKED_DEAD\fP ++.sp ++\fBMEMCACHED_UNKNOWN_STAT_KEY\fP ++.sp ++\fBMEMCACHED_E2BIG\fP ++.sp ++\fBMEMCACHED_INVALID_ARGUMENTS\fP ++.sp ++\fBMEMCACHED_KEY_TOO_BIG\fP ++.sp ++\fBMEMCACHED_AUTH_PROBLEM\fP ++.sp ++\fBMEMCACHED_AUTH_FAILURE\fP ++.sp ++\fBMEMCACHED_AUTH_CONTINUE\fP ++.sp ++\fBMEMCACHED_PARSE_ERROR\fP ++.sp ++\fBMEMCACHED_PARSE_USER_ERROR\fP ++.sp ++\fBMEMCACHED_DEPRECATED\fP +.SH SEE ALSO +.sp - \fImemcached(8)\fP \fIlibmemcached(3)\fP \fImemcached_client_error()\fP or \fImemcached_worker_error()\fP ++\fImemcached\fP \fIlibmemcached\fP \fImemcached_client_error\fP or \fImemcached_worker_error\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_sasl.3 index 1f4f6667,00000000..d2d0d131 mode 100644,000000..100644 --- a/docs/man/memcached_sasl.3 +++ b/docs/man/memcached_sasl.3 @@@ -1,94 -1,0 +1,92 @@@ - .TH "MEMCACHED_SASL" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SASL" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_sasl \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B void memcached_set_sasl_callbacks(memcached_st\fI\ *ptr\fP, const sasl_callback_t\fI\ *callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) ++.B memcached_return_t memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) ++.B memcached_return_t memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to plug in your own callbacks function used by +libsasl to perform SASL authentication. +.sp +Please note that SASL requires the memcached binary protocol, and you have +to specify the callbacks before you connect to the server. +.sp +\fI\%memcached_set_sasl_auth_data()\fP is a helper function defining +the basic functionality for you, but it will store the username and password +in memory. If you choose to use this method you have to call +\fI\%memcached_destroy_sasl_auth_data\fP before calling +\fBmemcached_free\fP to avoid a memory leak. You should NOT call +\fI\%memcached_destroy_sasl_auth_data\fP if you specify your own callback +function with \fI\%memcached_set_sasl_callbacks()\fP. - .sp - You as a client user have to initialize libsasl by using \fBsasl_client_init\fP before enabling it in libmemcached, and you have to shut down libsasl by - calling \fBsasl_done()\fP when you are done using SASL from libmemcached. +.SH RETURN +.sp - \fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used - by this memcached handle. \fBmemcached_get_sasl_set_auth_data()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used by ++this memcached handle. \fI\%memcached_set_sasl_auth_data()\fP returns ++\fBMEMCACHED_SUCCESS\fP upon success. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_sasl_set_auth_data.3 index e5a61eaa,00000000..745e782b mode 100644,000000..100644 --- a/docs/man/memcached_sasl_set_auth_data.3 +++ b/docs/man/memcached_sasl_set_auth_data.3 @@@ -1,94 -1,0 +1,92 @@@ - .TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_sasl_set_auth_data \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B void memcached_set_sasl_callbacks(memcached_st\fI\ *ptr\fP, const sasl_callback_t\fI\ *callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) ++.B memcached_return_t memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) ++.B memcached_return_t memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to plug in your own callbacks function used by +libsasl to perform SASL authentication. +.sp +Please note that SASL requires the memcached binary protocol, and you have +to specify the callbacks before you connect to the server. +.sp +\fI\%memcached_set_sasl_auth_data()\fP is a helper function defining +the basic functionality for you, but it will store the username and password +in memory. If you choose to use this method you have to call +\fI\%memcached_destroy_sasl_auth_data\fP before calling +\fBmemcached_free\fP to avoid a memory leak. You should NOT call +\fI\%memcached_destroy_sasl_auth_data\fP if you specify your own callback +function with \fI\%memcached_set_sasl_callbacks()\fP. - .sp - You as a client user have to initialize libsasl by using \fBsasl_client_init\fP before enabling it in libmemcached, and you have to shut down libsasl by - calling \fBsasl_done()\fP when you are done using SASL from libmemcached. +.SH RETURN +.sp - \fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used - by this memcached handle. \fBmemcached_get_sasl_set_auth_data()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used by ++this memcached handle. \fI\%memcached_set_sasl_auth_data()\fP returns ++\fBMEMCACHED_SUCCESS\fP upon success. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_add.3 index 25bccd8f,00000000..a98495ef mode 100644,000000..100644 --- a/docs/man/memcached_server_add.3 +++ b/docs/man/memcached_server_add.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVER_ADD" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_ADD" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_add \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_add_unix_socket.3 index c57f2533,00000000..a07e5833 mode 100644,000000..100644 --- a/docs/man/memcached_server_add_unix_socket.3 +++ b/docs/man/memcached_server_add_unix_socket.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_add_unix_socket \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_count.3 index f7bef10a,00000000..31707120 mode 100644,000000..100644 --- a/docs/man/memcached_server_count.3 +++ b/docs/man/memcached_server_count.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVER_COUNT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_COUNT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_count \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_cursor.3 index 64f25cf4,00000000..64bbaff0 mode 100644,000000..100644 --- a/docs/man/memcached_server_cursor.3 +++ b/docs/man/memcached_server_cursor.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVER_CURSOR" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_CURSOR" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_cursor \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_list.3 index f7560377,00000000..0f1b31b5 mode 100644,000000..100644 --- a/docs/man/memcached_server_list.3 +++ b/docs/man/memcached_server_list.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVER_LIST" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_LIST" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_list \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_list_append.3 index 1894c75e,00000000..2fd3b721 mode 100644,000000..100644 --- a/docs/man/memcached_server_list_append.3 +++ b/docs/man/memcached_server_list_append.3 @@@ -1,106 -1,0 +1,120 @@@ - .TH "MEMCACHED_SERVER_LIST_APPEND" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_LIST_APPEND" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_list_append \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_instance_st +.UNINDENT +.INDENT 0.0 +.TP ++.B memcached_server_list_st ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_server_st ++.UNINDENT ++.INDENT 0.0 ++.TP +.B const \fI\%memcached_server_instance_st\fP memcached_server_list(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_server_list_free(memcached_server_list_st\fI\ list\fP) ++.B void memcached_server_list_free(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_server_list_st memcached_server_list_append(memcached_server_list_st\fI\ list\fP, const char\fI\ *hostname\fP, unsigned int\fI\ port\fP, memcached_return_t\fI\ *error\fP) ++.B \fI\%memcached_server_list_st\fP memcached_server_list_append(\fI\%memcached_server_list_st\fP\fI\ list\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t memcached_server_list_count(memcached_server_list_st\fI\ list\fP) ++.B uint32_t memcached_server_list_count(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const char *memcached_server_error(\fI\%memcached_server_instance_st\fP\fI\ instance\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_server_error_reset(\fI\%memcached_server_instance_st\fP\fI\ list\fP) +.UNINDENT +.sp +Deprecated since version 0.39. ++.INDENT 0.0 ++.TP ++.B void memcached_servers_parse() ++.UNINDENT ++.sp ++Deprecated since version 0.39. +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) operates on a list of hosts which are stored in - \fBmemcached_server_st\fP structures. You should not modify these structures ++\fI\%memcached_server_st\fP structures. You should not modify these structures +directly. Functions are provided to modify these structures (and more can be +added, just ask!). +.sp - \fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free()" up till version 0.39. ++\fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free" up till version 0.39. +.sp - \fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it. ++\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fI\%memcached_server_st\fP that you passed to it. +.sp +\fI\%memcached_server_list_append()\fP adds a server to the end of a - \fBmemcached_server_st\fP array. On error null will be returned and the ++\fI\%memcached_server_st\fP array. On error null will be returned and the +\fBmemcached_return_t\fP pointer you passed into the function will be set with the appropriate error. If the value of port is zero, it is set to the default +port of a memcached server. +.sp - DEPRECATED \fBmemcached_servers_parse()\fP, please see \fBmemcached()\fP ++DEPRECATED \fI\%memcached_servers_parse()\fP, please see \fBmemcached()\fP +.sp +\fI\%memcached_server_error()\fP can be used to look at the text of the last error message sent by the server to to the client. +.sp +Before version 0.39 theses functions used a memcache_server_st *. In 0.39 - memcached_server_st * was aliased to \fBmemcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. ++memcached_server_st * was aliased to \fI\%memcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_list_count.3 index 5139781d,00000000..f9a9b1d6 mode 100644,000000..100644 --- a/docs/man/memcached_server_list_count.3 +++ b/docs/man/memcached_server_list_count.3 @@@ -1,106 -1,0 +1,120 @@@ - .TH "MEMCACHED_SERVER_LIST_COUNT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_LIST_COUNT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_list_count \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_instance_st +.UNINDENT +.INDENT 0.0 +.TP ++.B memcached_server_list_st ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_server_st ++.UNINDENT ++.INDENT 0.0 ++.TP +.B const \fI\%memcached_server_instance_st\fP memcached_server_list(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_server_list_free(memcached_server_list_st\fI\ list\fP) ++.B void memcached_server_list_free(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_server_list_st memcached_server_list_append(memcached_server_list_st\fI\ list\fP, const char\fI\ *hostname\fP, unsigned int\fI\ port\fP, memcached_return_t\fI\ *error\fP) ++.B \fI\%memcached_server_list_st\fP memcached_server_list_append(\fI\%memcached_server_list_st\fP\fI\ list\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t memcached_server_list_count(memcached_server_list_st\fI\ list\fP) ++.B uint32_t memcached_server_list_count(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const char *memcached_server_error(\fI\%memcached_server_instance_st\fP\fI\ instance\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_server_error_reset(\fI\%memcached_server_instance_st\fP\fI\ list\fP) +.UNINDENT +.sp +Deprecated since version 0.39. ++.INDENT 0.0 ++.TP ++.B void memcached_servers_parse() ++.UNINDENT ++.sp ++Deprecated since version 0.39. +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) operates on a list of hosts which are stored in - \fBmemcached_server_st\fP structures. You should not modify these structures ++\fI\%memcached_server_st\fP structures. You should not modify these structures +directly. Functions are provided to modify these structures (and more can be +added, just ask!). +.sp - \fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free()" up till version 0.39. ++\fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free" up till version 0.39. +.sp - \fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it. ++\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fI\%memcached_server_st\fP that you passed to it. +.sp +\fI\%memcached_server_list_append()\fP adds a server to the end of a - \fBmemcached_server_st\fP array. On error null will be returned and the ++\fI\%memcached_server_st\fP array. On error null will be returned and the +\fBmemcached_return_t\fP pointer you passed into the function will be set with the appropriate error. If the value of port is zero, it is set to the default +port of a memcached server. +.sp - DEPRECATED \fBmemcached_servers_parse()\fP, please see \fBmemcached()\fP ++DEPRECATED \fI\%memcached_servers_parse()\fP, please see \fBmemcached()\fP +.sp +\fI\%memcached_server_error()\fP can be used to look at the text of the last error message sent by the server to to the client. +.sp +Before version 0.39 theses functions used a memcache_server_st *. In 0.39 - memcached_server_st * was aliased to \fBmemcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. ++memcached_server_st * was aliased to \fI\%memcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_list_free.3 index 139602df,00000000..deeb8942 mode 100644,000000..100644 --- a/docs/man/memcached_server_list_free.3 +++ b/docs/man/memcached_server_list_free.3 @@@ -1,106 -1,0 +1,120 @@@ - .TH "MEMCACHED_SERVER_LIST_FREE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_LIST_FREE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_list_free \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_instance_st +.UNINDENT +.INDENT 0.0 +.TP ++.B memcached_server_list_st ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_server_st ++.UNINDENT ++.INDENT 0.0 ++.TP +.B const \fI\%memcached_server_instance_st\fP memcached_server_list(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_server_list_free(memcached_server_list_st\fI\ list\fP) ++.B void memcached_server_list_free(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_server_list_st memcached_server_list_append(memcached_server_list_st\fI\ list\fP, const char\fI\ *hostname\fP, unsigned int\fI\ port\fP, memcached_return_t\fI\ *error\fP) ++.B \fI\%memcached_server_list_st\fP memcached_server_list_append(\fI\%memcached_server_list_st\fP\fI\ list\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t memcached_server_list_count(memcached_server_list_st\fI\ list\fP) ++.B uint32_t memcached_server_list_count(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const char *memcached_server_error(\fI\%memcached_server_instance_st\fP\fI\ instance\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_server_error_reset(\fI\%memcached_server_instance_st\fP\fI\ list\fP) +.UNINDENT +.sp +Deprecated since version 0.39. ++.INDENT 0.0 ++.TP ++.B void memcached_servers_parse() ++.UNINDENT ++.sp ++Deprecated since version 0.39. +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) operates on a list of hosts which are stored in - \fBmemcached_server_st\fP structures. You should not modify these structures ++\fI\%memcached_server_st\fP structures. You should not modify these structures +directly. Functions are provided to modify these structures (and more can be +added, just ask!). +.sp - \fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free()" up till version 0.39. ++\fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free" up till version 0.39. +.sp - \fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it. ++\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fI\%memcached_server_st\fP that you passed to it. +.sp +\fI\%memcached_server_list_append()\fP adds a server to the end of a - \fBmemcached_server_st\fP array. On error null will be returned and the ++\fI\%memcached_server_st\fP array. On error null will be returned and the +\fBmemcached_return_t\fP pointer you passed into the function will be set with the appropriate error. If the value of port is zero, it is set to the default +port of a memcached server. +.sp - DEPRECATED \fBmemcached_servers_parse()\fP, please see \fBmemcached()\fP ++DEPRECATED \fI\%memcached_servers_parse()\fP, please see \fBmemcached()\fP +.sp +\fI\%memcached_server_error()\fP can be used to look at the text of the last error message sent by the server to to the client. +.sp +Before version 0.39 theses functions used a memcache_server_st *. In 0.39 - memcached_server_st * was aliased to \fBmemcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. ++memcached_server_st * was aliased to \fI\%memcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_push.3 index 800859d7,00000000..707fde8d mode 100644,000000..100644 --- a/docs/man/memcached_server_push.3 +++ b/docs/man/memcached_server_push.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVER_PUSH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_PUSH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_push \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_server_st.3 index 07facf5b,00000000..a82d81db mode 100644,000000..100644 --- a/docs/man/memcached_server_st.3 +++ b/docs/man/memcached_server_st.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVER_ST" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVER_ST" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_server_st \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_servers.3 index 35c9e3ee,00000000..feb58fe3 mode 100644,000000..100644 --- a/docs/man/memcached_servers.3 +++ b/docs/man/memcached_servers.3 @@@ -1,134 -1,0 +1,131 @@@ - .TH "MEMCACHED_SERVERS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVERS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_servers \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_fn +.UNINDENT +.INDENT 0.0 +.TP +.B uint32_t memcached_server_count(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_udp(memcached_st\fI\ *ptr\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_add_unix_socket(memcached_st\fI\ *ptr\fP, const char\fI\ *socket\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_push(memcached_st\fI\ *ptr\fP, const memcached_server_st\fI\ *list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_server_instance_st memcached_server_get_last_disconnect(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_server_cursor(const memcached_st\fI\ *ptr\fP, const \fI\%memcached_server_fn\fP\fI\ *callback\fP, void\fI\ *context\fP, uint32_t\fI\ number_of_callbacks\fP) +.UNINDENT +.sp +compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fBlibmemcached\fP performs operations on a list of hosts. The order of +these hosts determine routing to keys. Functions are provided to add keys to +memcached_st structures. To manipulate lists of servers see +memcached_server_st(3). +.sp +\fI\%memcached_server_count()\fP provides you a count of the current number of +servers being used by a \fBmemcached_st\fP structure. +.INDENT 0.0 +.TP +.B \fI\%memcached_server_add()\fP pushes a single TCP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate servers +are allowed, so duplication is not checked. Executing this function with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set will result in a \fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.UNINDENT +.sp +\fI\%memcached_server_add_udp()\fP pushes a single UDP server into the \fBmemcached_st\fP structure. This server will be placed at the end. Duplicate +servers are allowed, so duplication is not checked. Executing this function with out setting the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior will result in a +\fBMEMCACHED_INVALID_HOST_PROTOCOL\fP. +.sp +\fI\%memcached_server_add_unix_socket()\fP pushes a single UNIX socket into the \fBmemcached_st\fP structure. This UNIX socket will be placed at the end. +Duplicate servers are allowed, so duplication is not checked. The length +of the filename must be one character less than \fBMEMCACHED_MAX_HOST_LENGTH\fP. +.sp +\fI\%memcached_server_push()\fP pushes an array of \fBmemcached_server_st\fP into the \fBmemcached_st\fP structure. These servers will be placed at +the end. Duplicate servers are allowed, so duplication is not checked. A +copy is made of structure so the list provided (and any operations on +the list) are not saved. +.sp +\fI\%memcached_server_by_key()\fP allows you to provide a key and retrieve the - server which would be used for assignment. This structure is cloned - from its original structure and must be freed. If NULL is returned you - should consult *error. The returning structure should be freed with - \fBmemcached_server_free()\fP. ++server which would be used for assignment. +.sp +\fI\%memcached_server_get_last_disconnect()\fP returns a pointer to the last +server for which there was a connection problem. It does not mean this +particular server is currently dead but if the library is reporting a server +is, the returned server is a very good candidate. +.sp +\fI\%memcached_server_cursor()\fP takes a memcached_st and loops through the +list of hosts currently in the cursor calling the list of callback +functions provided. You can optionally pass in a value via +context which will be provided to each callback function. An error +return from any callback will terminate the loop. \fI\%memcached_server_cursor()\fP is passed the original caller \fBmemcached_st\fP in its current state. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_servers_parse.3 index bf822916,00000000..a0fc2eab mode 100644,000000..100644 --- a/docs/man/memcached_servers_parse.3 +++ b/docs/man/memcached_servers_parse.3 @@@ -1,106 -1,0 +1,120 @@@ - .TH "MEMCACHED_SERVERS_PARSE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVERS_PARSE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_servers_parse \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B memcached_server_instance_st +.UNINDENT +.INDENT 0.0 +.TP ++.B memcached_server_list_st ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_server_st ++.UNINDENT ++.INDENT 0.0 ++.TP +.B const \fI\%memcached_server_instance_st\fP memcached_server_list(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_server_list_free(memcached_server_list_st\fI\ list\fP) ++.B void memcached_server_list_free(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_server_list_st memcached_server_list_append(memcached_server_list_st\fI\ list\fP, const char\fI\ *hostname\fP, unsigned int\fI\ port\fP, memcached_return_t\fI\ *error\fP) ++.B \fI\%memcached_server_list_st\fP memcached_server_list_append(\fI\%memcached_server_list_st\fP\fI\ list\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B uint32_t memcached_server_list_count(memcached_server_list_st\fI\ list\fP) ++.B uint32_t memcached_server_list_count(\fI\%memcached_server_list_st\fP\fI\ list\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const char *memcached_server_error(\fI\%memcached_server_instance_st\fP\fI\ instance\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void memcached_server_error_reset(\fI\%memcached_server_instance_st\fP\fI\ list\fP) +.UNINDENT +.sp +Deprecated since version 0.39. ++.INDENT 0.0 ++.TP ++.B void memcached_servers_parse() ++.UNINDENT ++.sp ++Deprecated since version 0.39. +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) operates on a list of hosts which are stored in - \fBmemcached_server_st\fP structures. You should not modify these structures ++\fI\%memcached_server_st\fP structures. You should not modify these structures +directly. Functions are provided to modify these structures (and more can be +added, just ask!). +.sp - \fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free()" up till version 0.39. ++\fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free" up till version 0.39. +.sp - \fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it. ++\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fI\%memcached_server_st\fP that you passed to it. +.sp +\fI\%memcached_server_list_append()\fP adds a server to the end of a - \fBmemcached_server_st\fP array. On error null will be returned and the ++\fI\%memcached_server_st\fP array. On error null will be returned and the +\fBmemcached_return_t\fP pointer you passed into the function will be set with the appropriate error. If the value of port is zero, it is set to the default +port of a memcached server. +.sp - DEPRECATED \fBmemcached_servers_parse()\fP, please see \fBmemcached()\fP ++DEPRECATED \fI\%memcached_servers_parse()\fP, please see \fBmemcached()\fP +.sp +\fI\%memcached_server_error()\fP can be used to look at the text of the last error message sent by the server to to the client. +.sp +Before version 0.39 theses functions used a memcache_server_st *. In 0.39 - memcached_server_st * was aliased to \fBmemcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. ++memcached_server_st * was aliased to \fI\%memcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code. +.SH RETURN +.sp +Varies, see particular functions. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_servers_reset.3 index 4eb505fc,00000000..1a5cf623 mode 100644,000000..100644 --- a/docs/man/memcached_servers_reset.3 +++ b/docs/man/memcached_servers_reset.3 @@@ -1,108 -1,0 +1,108 @@@ - .TH "MEMCACHED_SERVERS_RESET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SERVERS_RESET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_servers_reset \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcachd_st ++.B memcached_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP) ++.B \fI\%memcached_st\fP* memcached_create(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_free(memcached_st\fI\ *ptr\fP) ++.B void memcached_free(\fI\%memcached_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP) ++.B \fI\%memcached_st\fP* memcached_clone(\fI\%memcached_st\fP\fI\ *destination\fP, \fI\%memcached_st\fP\fI\ *source\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_servers_reset(memcached_st) ++.B void memcached_servers_reset(\fI\%memcached_st\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fI\%memcached_create()\fP is used to create a \fBmemcached_st\fP ++\fI\%memcached_create()\fP is used to create a \fI\%memcached_st\fP +structure that will then be used by other libmemcached(3) functions to +communicate with the server. You should either pass a statically declared - \fBmemcached_st\fP to \fI\%memcached_create()\fP or ++\fI\%memcached_st\fP to \fI\%memcached_create()\fP or +a NULL. If a NULL passed in then a structure is allocated for you. +.sp +Please note, when you write new application use - \fBmemcached_create_with_options()\fP over ++\fBmemcached()\fP over +\fI\%memcached_create()\fP. +.sp +\fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but +it copies the defaults and list of servers from the source - \fBmemcached_st\fP. If you pass a null as the argument for the source ++\fI\%memcached_st\fP. If you pass a null as the argument for the source +to clone, it is the same as a call to \fI\%memcached_create()\fP. - If the destination argument is NULL a \fBmemcached_st\fP will be allocated ++If the destination argument is NULL a \fI\%memcached_st\fP will be allocated +for you. +.sp +\fI\%memcached_servers_reset()\fP allows you to zero out the list of - servers that the \fBmemcached_st\fP has. ++servers that the \fI\%memcached_st\fP has. +.sp - To clean up memory associated with a \fBmemcached_st\fP structure you ++To clean up memory associated with a \fI\%memcached_st\fP structure you +should pass it to \fI\%memcached_free()\fP when you are finished using it. +\fI\%memcached_free()\fP is the only way to make sure all memory is +deallocated when you finish using the structure. +.sp +You may wish to avoid using memcached_create(3) or memcached_clone(3) with a +stack based allocation. The most common issues related to ABI safety involve +heap allocated structures. +.SH RETURN +.sp - \fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_create()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.sp - \fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP ++\fI\%memcached_clone()\fP returns a pointer to the \fI\%memcached_st\fP +that was created (or initialized). On an allocation failure, it returns NULL. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_set.3 index 16a4cc8f,00000000..666afbe8 mode 100644,000000..100644 --- a/docs/man/memcached_set.3 +++ b/docs/man/memcached_set.3 @@@ -1,121 -1,0 +1,121 @@@ - .TH "MEMCACHED_SET" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SET" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_set \- Storing and Replacing Data +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_set()\fP, \fBmemcached_add()\fP, and \fBmemcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you ++\fI\%memcached_set()\fP, \fI\%memcached_add()\fP, and \fI\%memcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you +store the object. Keys are currently limited to 250 characters by the +memcached(1) server. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is meant to be used as a bitmap). "flags" is a 4byte space that is stored alongside of the main value. Many sub libraries make use of this field, so in most cases users should avoid making use of it. +.sp - \fBmemcached_set()\fP will write an object to the server. If an object ++\fI\%memcached_set()\fP will write an object to the server. If an object +already exists it will overwrite what is in the server. If the object does not +exist it will be written. If you are using the non\-blocking mode this function +will always return true unless a network error occurs. +.sp - \fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. ++\fI\%memcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. +.sp - \fBmemcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. ++\fI\%memcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. +.sp +\fBmemcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result by +calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) structure. At the point +that this note was written cas is still buggy in memached. Turning on tests - for it in libmemcached(3) is optional. Please see memcached_set() for ++for it in libmemcached(3) is optional. Please see memcached_set for +information on how to do this. +.sp - \fBmemcached_set_by_key()\fP, \fBmemcached_add_by_key()\fP, and \fBmemcached_replace_by_key()\fP methods all behave in a similar method as the non ++\fI\%memcached_set_by_key()\fP, \fI\%memcached_add_by_key()\fP, and \fI\%memcached_replace_by_key()\fP methods all behave in a similar method as the non +key methods. The difference is that they use their group_key parameter to map +objects to particular servers. +.sp - If you are looking for performance, \fBmemcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. ++If you are looking for performance, \fI\%memcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. +The reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user supplied data is less than 1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, \fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, flags and expiry combined may not +exceed 1368 bytes. When running with the ASCII protocol, the exact limit fluctuates depending on which function is being executed and whether the function is a cas operation or not. For non\-cas ASCII set operations, there are at least +1335 bytes available to split among the key, key_prefix, and value; for cas +ASCII operations there are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, +exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable string. +.sp - For \fBmemcached_replace()\fP and \fBmemcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. ++For \fI\%memcached_replace()\fP and \fI\%memcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_prepend(3)\fP \fImemcached_cas(3)\fP \fImemcached_append(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_set_by_key.3 index b615ab3b,00000000..a3549f9e mode 100644,000000..100644 --- a/docs/man/memcached_set_by_key.3 +++ b/docs/man/memcached_set_by_key.3 @@@ -1,121 -1,0 +1,121 @@@ - .TH "MEMCACHED_SET_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SET_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_set_by_key \- Storing and Replacing Data +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace (memcached_st *ptr, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_set_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_add_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_add_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_replace_by_key(memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, const char *value, size_t value_length, time_t expiration, uint32_t flags); ++.B memcached_return_t memcached_replace_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, time_t\fI\ expiration\fP, uint32_t\fI\ flags\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_set()\fP, \fBmemcached_add()\fP, and \fBmemcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you ++\fI\%memcached_set()\fP, \fI\%memcached_add()\fP, and \fI\%memcached_replace()\fP are all used to store information on the server. All methods take a key, and its length to store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol. You must supply both a value and a length. Optionally you +store the object. Keys are currently limited to 250 characters by the +memcached(1) server. You must supply both a value and a length. Optionally you +may test an expiration time for the object and a 16 byte value (it is meant to be used as a bitmap). "flags" is a 4byte space that is stored alongside of the main value. Many sub libraries make use of this field, so in most cases users should avoid making use of it. +.sp - \fBmemcached_set()\fP will write an object to the server. If an object ++\fI\%memcached_set()\fP will write an object to the server. If an object +already exists it will overwrite what is in the server. If the object does not +exist it will be written. If you are using the non\-blocking mode this function +will always return true unless a network error occurs. +.sp - \fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. ++\fI\%memcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs. +.sp - \fBmemcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. ++\fI\%memcached_add()\fP adds an object to the server. If the object is found on the server an error occurs, otherwise the value is stored. +.sp +\fBmemcached_cas()\fP overwrites data in the server as long as the "cas" +value is still the same in the server. You can get the cas value of a result by +calling \fBmemcached_result_cas()\fP on a memcached_result_st(3) structure. At the point +that this note was written cas is still buggy in memached. Turning on tests - for it in libmemcached(3) is optional. Please see memcached_set() for ++for it in libmemcached(3) is optional. Please see memcached_set for +information on how to do this. +.sp - \fBmemcached_set_by_key()\fP, \fBmemcached_add_by_key()\fP, and \fBmemcached_replace_by_key()\fP methods all behave in a similar method as the non ++\fI\%memcached_set_by_key()\fP, \fI\%memcached_add_by_key()\fP, and \fI\%memcached_replace_by_key()\fP methods all behave in a similar method as the non +key methods. The difference is that they use their group_key parameter to map +objects to particular servers. +.sp - If you are looking for performance, \fBmemcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. ++If you are looking for performance, \fI\%memcached_set()\fP with non\-blocking IO is the fastest way to store data on the server. +.sp +All of the above functions are testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior enabled. However, when using these operations with this behavior +on, there are limits to the size of the payload being sent to the server. +The reason for these limits is that the Memcached Server does not allow +multi\-datagram requests and the current server implementation sets a datagram +size to 1400 bytes. Due to protocol overhead, the actual limit of the user supplied data is less than 1400 bytes and depends on the protocol in use as, well as the operation being +executed. When running with the binary protocol, \fBMEMCACHED_BEHAVIOR_BINARY_PROTOCOL\fP, the size of the key,value, flags and expiry combined may not +exceed 1368 bytes. When running with the ASCII protocol, the exact limit fluctuates depending on which function is being executed and whether the function is a cas operation or not. For non\-cas ASCII set operations, there are at least +1335 bytes available to split among the key, key_prefix, and value; for cas +ASCII operations there are at least 1318 bytes available to split among the key, key_prefix and value. If the total size of the command, including overhead, +exceeds 1400 bytes, a \fBMEMCACHED_WRITE_FAILURE\fP will be returned. +.SH RETURN +.sp +All methods return a value of type \fBmemcached_return_t\fP. +On success the value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable string. +.sp - For \fBmemcached_replace()\fP and \fBmemcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. ++For \fI\%memcached_replace()\fP and \fI\%memcached_add()\fP, \fBMEMCACHED_NOTSTORED\fP is a legitmate error in the case of a collision. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_prepend(3)\fP \fImemcached_cas(3)\fP \fImemcached_append(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_set_memory_allocators.3 index 66132462,00000000..5141ab20 mode 100644,000000..100644 --- a/docs/man/memcached_set_memory_allocators.3 +++ b/docs/man/memcached_set_memory_allocators.3 @@@ -1,112 -1,0 +1,112 @@@ - .TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_set_memory_allocators \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manage memory allocator functions +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_memory_allocators (memcached_st *ptr, memcached_malloc_fn mem_malloc, memcached_free_fn mem_free, memcached_realloc_fn mem_realloc, memcached_calloc_fn mem_calloc, void *context); ++.B memcached_return_t memcached_set_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ mem_calloc\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_get_memory_allocators (memcached_st *ptr, memcached_malloc_fn *mem_malloc, memcached_free_fn *mem_free, memcached_realloc_fn *mem_realloc, memcached_calloc_fn *mem_calloc); ++.B void memcached_get_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ *mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ *mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ *mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ *mem_calloc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * memcached_get_memory_allocators_context(const memcached_st *ptr); ++.B void * memcached_get_memory_allocators_context(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_malloc_fn) (memcached_st *ptr, const size_t size, void *context); ++.B void * (*memcached_malloc_fn)(memcached_st\fI\ *ptr\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_realloc_fn) (memcached_st *ptr, void *mem, const size_t size, void *context); ++.B void * (*memcached_realloc_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void (*memcached_free_fn) (memcached_st *ptr, void *mem, void *context); ++.B void (*memcached_free_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_calloc_fn) (memcached_st *ptr, size_t nelem, const size_t elsize, void *context); ++.B void * (*memcached_calloc_fn)(memcached_st\fI\ *ptr\fP, size_t\fI\ nelem\fP, const size_t\fI\ elsize\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to specify your own memory allocators, optimized +for your application. This enables libmemcached to be used inside of applications that have their own malloc implementation. +.sp - \fBmemcached_set_memory_allocators()\fP is used to set the memory ++\fI\%memcached_set_memory_allocators()\fP is used to set the memory +allocators used by the memcached instance specified by ptr. Please note that +you cannot override only one of the memory allocators, you have to specify a +complete new set if you want to override one of them. All of the memory +allocation functions should behave as specified in the C99 standard. Specify +NULL as all functions to reset them to the default values. +.sp - \fBmemcached_get_memory_allocators()\fP is used to get the currently used ++\fI\%memcached_get_memory_allocators()\fP is used to get the currently used +memory allocators by a mamcached handle. +.sp - \fBmemcached_get_memory_allocators_context()\fP returns the void * that - was passed in during the call to \fBmemcached_set_memory_allocators()\fP. ++\fI\%memcached_get_memory_allocators_context()\fP returns the void * that ++was passed in during the call to \fI\%memcached_set_memory_allocators()\fP. +.sp +The first argument to the memory allocator functions is a pointer to a +memcached structure, the is passed as const and you will need to clone +it in order to make use of any operation which would modify it. +.SH NOTES +.sp +In version 0.38 all functions were modified to have a context void pointer +passed to them. This was so that customer allocators could have their +own space for memory. +.SH RETURN +.sp - \fBmemcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP ++\fI\%memcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP +upon success, and \fBMEMCACHED_FAILURE\fP if you don\(aqt pass a complete set +of function pointers. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_set_memory_allocators_context.3 index 2e782c1e,00000000..e2c116ea mode 100644,000000..100644 --- a/docs/man/memcached_set_memory_allocators_context.3 +++ b/docs/man/memcached_set_memory_allocators_context.3 @@@ -1,112 -1,0 +1,112 @@@ - .TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_set_memory_allocators_context \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manage memory allocator functions +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_set_memory_allocators (memcached_st *ptr, memcached_malloc_fn mem_malloc, memcached_free_fn mem_free, memcached_realloc_fn mem_realloc, memcached_calloc_fn mem_calloc, void *context); ++.B memcached_return_t memcached_set_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ mem_calloc\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void memcached_get_memory_allocators (memcached_st *ptr, memcached_malloc_fn *mem_malloc, memcached_free_fn *mem_free, memcached_realloc_fn *mem_realloc, memcached_calloc_fn *mem_calloc); ++.B void memcached_get_memory_allocators(memcached_st\fI\ *ptr\fP, \fI\%memcached_malloc_fn\fP\fI\ *mem_malloc\fP, \fI\%memcached_free_fn\fP\fI\ *mem_free\fP, \fI\%memcached_realloc_fn\fP\fI\ *mem_realloc\fP, \fI\%memcached_calloc_fn\fP\fI\ *mem_calloc\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * memcached_get_memory_allocators_context(const memcached_st *ptr); ++.B void * memcached_get_memory_allocators_context(const memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_malloc_fn) (memcached_st *ptr, const size_t size, void *context); ++.B void * (*memcached_malloc_fn)(memcached_st\fI\ *ptr\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_realloc_fn) (memcached_st *ptr, void *mem, const size_t size, void *context); ++.B void * (*memcached_realloc_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, const size_t\fI\ size\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void (*memcached_free_fn) (memcached_st *ptr, void *mem, void *context); ++.B void (*memcached_free_fn)(memcached_st\fI\ *ptr\fP, void\fI\ *mem\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B void * (*memcached_calloc_fn) (memcached_st *ptr, size_t nelem, const size_t elsize, void *context); ++.B void * (*memcached_calloc_fn)(memcached_st\fI\ *ptr\fP, size_t\fI\ nelem\fP, const size_t\fI\ elsize\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to specify your own memory allocators, optimized +for your application. This enables libmemcached to be used inside of applications that have their own malloc implementation. +.sp - \fBmemcached_set_memory_allocators()\fP is used to set the memory ++\fI\%memcached_set_memory_allocators()\fP is used to set the memory +allocators used by the memcached instance specified by ptr. Please note that +you cannot override only one of the memory allocators, you have to specify a +complete new set if you want to override one of them. All of the memory +allocation functions should behave as specified in the C99 standard. Specify +NULL as all functions to reset them to the default values. +.sp - \fBmemcached_get_memory_allocators()\fP is used to get the currently used ++\fI\%memcached_get_memory_allocators()\fP is used to get the currently used +memory allocators by a mamcached handle. +.sp - \fBmemcached_get_memory_allocators_context()\fP returns the void * that - was passed in during the call to \fBmemcached_set_memory_allocators()\fP. ++\fI\%memcached_get_memory_allocators_context()\fP returns the void * that ++was passed in during the call to \fI\%memcached_set_memory_allocators()\fP. +.sp +The first argument to the memory allocator functions is a pointer to a +memcached structure, the is passed as const and you will need to clone +it in order to make use of any operation which would modify it. +.SH NOTES +.sp +In version 0.38 all functions were modified to have a context void pointer +passed to them. This was so that customer allocators could have their +own space for memory. +.SH RETURN +.sp - \fBmemcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP ++\fI\%memcached_set_memory_allocators()\fP return \fBMEMCACHED_SUCCESS\fP +upon success, and \fBMEMCACHED_FAILURE\fP if you don\(aqt pass a complete set +of function pointers. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_set_sasl_callbacks.3 index 4d9fe42e,00000000..88d6b02b mode 100644,000000..100644 --- a/docs/man/memcached_set_sasl_callbacks.3 +++ b/docs/man/memcached_set_sasl_callbacks.3 @@@ -1,94 -1,0 +1,92 @@@ - .TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_set_sasl_callbacks \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B void memcached_set_sasl_callbacks(memcached_st\fI\ *ptr\fP, const sasl_callback_t\fI\ *callbacks\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) ++.B memcached_return_t memcached_set_sasl_auth_data(memcached_st\fI\ *ptr\fP, const char\fI\ *username\fP, const char\fI\ *password\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) ++.B memcached_return_t memcached_destroy_sasl_auth_data(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to plug in your own callbacks function used by +libsasl to perform SASL authentication. +.sp +Please note that SASL requires the memcached binary protocol, and you have +to specify the callbacks before you connect to the server. +.sp +\fI\%memcached_set_sasl_auth_data()\fP is a helper function defining +the basic functionality for you, but it will store the username and password +in memory. If you choose to use this method you have to call +\fI\%memcached_destroy_sasl_auth_data\fP before calling +\fBmemcached_free\fP to avoid a memory leak. You should NOT call +\fI\%memcached_destroy_sasl_auth_data\fP if you specify your own callback +function with \fI\%memcached_set_sasl_callbacks()\fP. - .sp - You as a client user have to initialize libsasl by using \fBsasl_client_init\fP before enabling it in libmemcached, and you have to shut down libsasl by - calling \fBsasl_done()\fP when you are done using SASL from libmemcached. +.SH RETURN +.sp - \fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used - by this memcached handle. \fBmemcached_get_sasl_set_auth_data()\fP returns \fBMEMCACHED_SUCCESS\fP upon success. ++\fI\%memcached_get_sasl_callbacks()\fP returns the callbacks currently used by ++this memcached handle. \fI\%memcached_set_sasl_auth_data()\fP returns ++\fBMEMCACHED_SUCCESS\fP upon success. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_set_user_data.3 index 0a095f5e,00000000..53f8fc17 mode 100644,000000..100644 --- a/docs/man/memcached_set_user_data.3 +++ b/docs/man/memcached_set_user_data.3 @@@ -1,76 -1,0 +1,84 @@@ - .TH "MEMCACHED_SET_USER_DATA" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_SET_USER_DATA" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_set_user_data \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manage user specific data +.SH LIBRARY +.sp +C Client Library for memcached (libmemcached, \-lmemcached) +.SH SYNOPSIS +.sp +.nf +.ft C - #include - - void *memcached_get_user_data (memcached_st *ptr); + - void *memcached_set_user_data (memcached_st *ptr, void *data); +.ft P +.fi ++.sp ++#include ++.INDENT 0.0 ++.TP ++.B void *memcached_get_user_data(memcached_st\fI\ *ptr\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B void *memcached_set_user_data(memcached_st\fI\ *ptr\fP, void\fI\ *data\fP) ++.UNINDENT ++.sp ++Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to store a pointer to a user specific data inside +the memcached_st structure. +.sp - \fBmemcached_set_user_data()\fP is used to set the user specific data in the ++\fI\%memcached_set_user_data()\fP is used to set the user specific data in the +\fBmemcached_st\fP structure. +.sp - \fBmemcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure. ++\fI\%memcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure. +.SH RETURN +.sp - \fBmemcached_set_user_data()\fP returns the previous value of the user specific data. ++\fI\%memcached_set_user_data()\fP returns the previous value of the user specific data. +.sp - \fBmemcached_get_user_data()\fP returns the current value uf the user specific data. ++\fI\%memcached_get_user_data()\fP returns the current value uf the user specific data. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_stat.3 index 22de2002,00000000..5f577fd2 mode 100644,000000..100644 --- a/docs/man/memcached_stat.3 +++ b/docs/man/memcached_stat.3 @@@ -1,103 -1,0 +1,111 @@@ - .TH "MEMCACHED_STAT" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_STAT" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_stat \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get memcached statistics +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_stat_st *memcached_stat (memcached_st *ptr, char *args, memcached_return_t *error); ++.B memcached_stat_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_servername (memcached_stat_st *stat, char *args, const char *hostname, unsigned int port); ++.B memcached_return_t (*memcached_stat_fn)(memcached_server_instance_st\fI\ server\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char * memcached_stat_get_value (memcached_st *ptr, memcached_stat_st *stat, const char *key, memcached_return_t *error); ++.B \fI\%memcached_stat_st\fP *memcached_stat(memcached_st\fI\ *ptr\fP, char\fI\ *args\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char ** memcached_stat_get_keys (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error); ++.B memcached_return_t memcached_stat_servername(\fI\%memcached_stat_st\fP\fI\ *stat\fP, char\fI\ *args\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_execute (memcached_st *memc, const char *args, memcached_stat_fn func, void *context); ++.B char * memcached_stat_get_value(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, const char\fI\ *key\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B char ** memcached_stat_get_keys(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_stat_execute(memcached_st\fI\ *memc\fP, const char\fI\ *args\fP, \fI\%memcached_stat_fn\fP\fI\ func\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) has the ability to query a memcached server (or collection +of servers) for their current state. Queries to find state return a - \fBmemcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fBmemcached_stat_get_value()\fP has been provided to query the structure. ++\fI\%memcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fI\%memcached_stat_get_value()\fP has been provided to query the structure. +.sp - \fBmemcached_stat_execute()\fP uses the servers found in \fBmemcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by ++\fI\%memcached_stat_execute()\fP uses the servers found in \fI\%memcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by +the memcached server. +.sp - \fBmemcached_stat()\fP fetches an array of \fBmemcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. ++\fI\%memcached_stat()\fP fetches an array of \fI\%memcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.sp - \fBmemcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either - the \fBmemcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to ++\fI\%memcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either ++the \fI\%memcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to +obtain information on. +.sp - \fBmemcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. ++\fI\%memcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. +.sp - \fBmemcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. ++\fI\%memcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. +.sp +A command line tool, memstat(1), is provided so that you do not have to write +an application to do this. +.SH RETURN +.sp +Varies, see particular functions. +.sp - Any method returning a \fBmemcached_stat_st\fP expects you to free the ++Any method returning a \fI\%memcached_stat_st\fP expects you to free the +memory allocated for it. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_stat_execute.3 index e52baadb,00000000..076cb273 mode 100644,000000..100644 --- a/docs/man/memcached_stat_execute.3 +++ b/docs/man/memcached_stat_execute.3 @@@ -1,103 -1,0 +1,111 @@@ - .TH "MEMCACHED_STAT_EXECUTE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_STAT_EXECUTE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_stat_execute \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get memcached statistics +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_stat_st *memcached_stat (memcached_st *ptr, char *args, memcached_return_t *error); ++.B memcached_stat_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_servername (memcached_stat_st *stat, char *args, const char *hostname, unsigned int port); ++.B memcached_return_t (*memcached_stat_fn)(memcached_server_instance_st\fI\ server\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char * memcached_stat_get_value (memcached_st *ptr, memcached_stat_st *stat, const char *key, memcached_return_t *error); ++.B \fI\%memcached_stat_st\fP *memcached_stat(memcached_st\fI\ *ptr\fP, char\fI\ *args\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char ** memcached_stat_get_keys (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error); ++.B memcached_return_t memcached_stat_servername(\fI\%memcached_stat_st\fP\fI\ *stat\fP, char\fI\ *args\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_execute (memcached_st *memc, const char *args, memcached_stat_fn func, void *context); ++.B char * memcached_stat_get_value(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, const char\fI\ *key\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B char ** memcached_stat_get_keys(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_stat_execute(memcached_st\fI\ *memc\fP, const char\fI\ *args\fP, \fI\%memcached_stat_fn\fP\fI\ func\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) has the ability to query a memcached server (or collection +of servers) for their current state. Queries to find state return a - \fBmemcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fBmemcached_stat_get_value()\fP has been provided to query the structure. ++\fI\%memcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fI\%memcached_stat_get_value()\fP has been provided to query the structure. +.sp - \fBmemcached_stat_execute()\fP uses the servers found in \fBmemcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by ++\fI\%memcached_stat_execute()\fP uses the servers found in \fI\%memcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by +the memcached server. +.sp - \fBmemcached_stat()\fP fetches an array of \fBmemcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. ++\fI\%memcached_stat()\fP fetches an array of \fI\%memcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.sp - \fBmemcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either - the \fBmemcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to ++\fI\%memcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either ++the \fI\%memcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to +obtain information on. +.sp - \fBmemcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. ++\fI\%memcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. +.sp - \fBmemcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. ++\fI\%memcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. +.sp +A command line tool, memstat(1), is provided so that you do not have to write +an application to do this. +.SH RETURN +.sp +Varies, see particular functions. +.sp - Any method returning a \fBmemcached_stat_st\fP expects you to free the ++Any method returning a \fI\%memcached_stat_st\fP expects you to free the +memory allocated for it. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_stat_get_keys.3 index cfc09bdf,00000000..9047eb8f mode 100644,000000..100644 --- a/docs/man/memcached_stat_get_keys.3 +++ b/docs/man/memcached_stat_get_keys.3 @@@ -1,103 -1,0 +1,111 @@@ - .TH "MEMCACHED_STAT_GET_KEYS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_STAT_GET_KEYS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_stat_get_keys \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get memcached statistics +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_stat_st *memcached_stat (memcached_st *ptr, char *args, memcached_return_t *error); ++.B memcached_stat_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_servername (memcached_stat_st *stat, char *args, const char *hostname, unsigned int port); ++.B memcached_return_t (*memcached_stat_fn)(memcached_server_instance_st\fI\ server\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char * memcached_stat_get_value (memcached_st *ptr, memcached_stat_st *stat, const char *key, memcached_return_t *error); ++.B \fI\%memcached_stat_st\fP *memcached_stat(memcached_st\fI\ *ptr\fP, char\fI\ *args\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char ** memcached_stat_get_keys (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error); ++.B memcached_return_t memcached_stat_servername(\fI\%memcached_stat_st\fP\fI\ *stat\fP, char\fI\ *args\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_execute (memcached_st *memc, const char *args, memcached_stat_fn func, void *context); ++.B char * memcached_stat_get_value(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, const char\fI\ *key\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B char ** memcached_stat_get_keys(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_stat_execute(memcached_st\fI\ *memc\fP, const char\fI\ *args\fP, \fI\%memcached_stat_fn\fP\fI\ func\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) has the ability to query a memcached server (or collection +of servers) for their current state. Queries to find state return a - \fBmemcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fBmemcached_stat_get_value()\fP has been provided to query the structure. ++\fI\%memcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fI\%memcached_stat_get_value()\fP has been provided to query the structure. +.sp - \fBmemcached_stat_execute()\fP uses the servers found in \fBmemcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by ++\fI\%memcached_stat_execute()\fP uses the servers found in \fI\%memcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by +the memcached server. +.sp - \fBmemcached_stat()\fP fetches an array of \fBmemcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. ++\fI\%memcached_stat()\fP fetches an array of \fI\%memcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.sp - \fBmemcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either - the \fBmemcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to ++\fI\%memcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either ++the \fI\%memcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to +obtain information on. +.sp - \fBmemcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. ++\fI\%memcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. +.sp - \fBmemcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. ++\fI\%memcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. +.sp +A command line tool, memstat(1), is provided so that you do not have to write +an application to do this. +.SH RETURN +.sp +Varies, see particular functions. +.sp - Any method returning a \fBmemcached_stat_st\fP expects you to free the ++Any method returning a \fI\%memcached_stat_st\fP expects you to free the +memory allocated for it. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_stat_get_value.3 index 6c04e45d,00000000..8b25b335 mode 100644,000000..100644 --- a/docs/man/memcached_stat_get_value.3 +++ b/docs/man/memcached_stat_get_value.3 @@@ -1,103 -1,0 +1,111 @@@ - .TH "MEMCACHED_STAT_GET_VALUE" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_STAT_GET_VALUE" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_stat_get_value \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get memcached statistics +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_stat_st *memcached_stat (memcached_st *ptr, char *args, memcached_return_t *error); ++.B memcached_stat_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_servername (memcached_stat_st *stat, char *args, const char *hostname, unsigned int port); ++.B memcached_return_t (*memcached_stat_fn)(memcached_server_instance_st\fI\ server\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char * memcached_stat_get_value (memcached_st *ptr, memcached_stat_st *stat, const char *key, memcached_return_t *error); ++.B \fI\%memcached_stat_st\fP *memcached_stat(memcached_st\fI\ *ptr\fP, char\fI\ *args\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char ** memcached_stat_get_keys (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error); ++.B memcached_return_t memcached_stat_servername(\fI\%memcached_stat_st\fP\fI\ *stat\fP, char\fI\ *args\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_execute (memcached_st *memc, const char *args, memcached_stat_fn func, void *context); ++.B char * memcached_stat_get_value(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, const char\fI\ *key\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B char ** memcached_stat_get_keys(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_stat_execute(memcached_st\fI\ *memc\fP, const char\fI\ *args\fP, \fI\%memcached_stat_fn\fP\fI\ func\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) has the ability to query a memcached server (or collection +of servers) for their current state. Queries to find state return a - \fBmemcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fBmemcached_stat_get_value()\fP has been provided to query the structure. ++\fI\%memcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fI\%memcached_stat_get_value()\fP has been provided to query the structure. +.sp - \fBmemcached_stat_execute()\fP uses the servers found in \fBmemcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by ++\fI\%memcached_stat_execute()\fP uses the servers found in \fI\%memcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by +the memcached server. +.sp - \fBmemcached_stat()\fP fetches an array of \fBmemcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. ++\fI\%memcached_stat()\fP fetches an array of \fI\%memcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.sp - \fBmemcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either - the \fBmemcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to ++\fI\%memcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either ++the \fI\%memcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to +obtain information on. +.sp - \fBmemcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. ++\fI\%memcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. +.sp - \fBmemcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. ++\fI\%memcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. +.sp +A command line tool, memstat(1), is provided so that you do not have to write +an application to do this. +.SH RETURN +.sp +Varies, see particular functions. +.sp - Any method returning a \fBmemcached_stat_st\fP expects you to free the ++Any method returning a \fI\%memcached_stat_st\fP expects you to free the +memory allocated for it. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_stat_servername.3 index 68443c98,00000000..cdab1a83 mode 100644,000000..100644 --- a/docs/man/memcached_stat_servername.3 +++ b/docs/man/memcached_stat_servername.3 @@@ -1,103 -1,0 +1,111 @@@ - .TH "MEMCACHED_STAT_SERVERNAME" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_STAT_SERVERNAME" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_stat_servername \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get memcached statistics +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_stat_st *memcached_stat (memcached_st *ptr, char *args, memcached_return_t *error); ++.B memcached_stat_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_servername (memcached_stat_st *stat, char *args, const char *hostname, unsigned int port); ++.B memcached_return_t (*memcached_stat_fn)(memcached_server_instance_st\fI\ server\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char * memcached_stat_get_value (memcached_st *ptr, memcached_stat_st *stat, const char *key, memcached_return_t *error); ++.B \fI\%memcached_stat_st\fP *memcached_stat(memcached_st\fI\ *ptr\fP, char\fI\ *args\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char ** memcached_stat_get_keys (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error); ++.B memcached_return_t memcached_stat_servername(\fI\%memcached_stat_st\fP\fI\ *stat\fP, char\fI\ *args\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_execute (memcached_st *memc, const char *args, memcached_stat_fn func, void *context); ++.B char * memcached_stat_get_value(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, const char\fI\ *key\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B char ** memcached_stat_get_keys(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_stat_execute(memcached_st\fI\ *memc\fP, const char\fI\ *args\fP, \fI\%memcached_stat_fn\fP\fI\ func\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) has the ability to query a memcached server (or collection +of servers) for their current state. Queries to find state return a - \fBmemcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fBmemcached_stat_get_value()\fP has been provided to query the structure. ++\fI\%memcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fI\%memcached_stat_get_value()\fP has been provided to query the structure. +.sp - \fBmemcached_stat_execute()\fP uses the servers found in \fBmemcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by ++\fI\%memcached_stat_execute()\fP uses the servers found in \fI\%memcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by +the memcached server. +.sp - \fBmemcached_stat()\fP fetches an array of \fBmemcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. ++\fI\%memcached_stat()\fP fetches an array of \fI\%memcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.sp - \fBmemcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either - the \fBmemcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to ++\fI\%memcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either ++the \fI\%memcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to +obtain information on. +.sp - \fBmemcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. ++\fI\%memcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. +.sp - \fBmemcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. ++\fI\%memcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. +.sp +A command line tool, memstat(1), is provided so that you do not have to write +an application to do this. +.SH RETURN +.sp +Varies, see particular functions. +.sp - Any method returning a \fBmemcached_stat_st\fP expects you to free the ++Any method returning a \fI\%memcached_stat_st\fP expects you to free the +memory allocated for it. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_stats.3 index d099d95e,00000000..f684c3ea mode 100644,000000..100644 --- a/docs/man/memcached_stats.3 +++ b/docs/man/memcached_stats.3 @@@ -1,103 -1,0 +1,111 @@@ - .TH "MEMCACHED_STATS" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_STATS" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_stats \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Get memcached statistics +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_stat_st *memcached_stat (memcached_st *ptr, char *args, memcached_return_t *error); ++.B memcached_stat_st +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_servername (memcached_stat_st *stat, char *args, const char *hostname, unsigned int port); ++.B memcached_return_t (*memcached_stat_fn)(memcached_server_instance_st\fI\ server\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, const char\fI\ *value\fP, size_t\fI\ value_length\fP, void\fI\ *context\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char * memcached_stat_get_value (memcached_st *ptr, memcached_stat_st *stat, const char *key, memcached_return_t *error); ++.B \fI\%memcached_stat_st\fP *memcached_stat(memcached_st\fI\ *ptr\fP, char\fI\ *args\fP, memcached_return_t\fI\ *error\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B char ** memcached_stat_get_keys (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error); ++.B memcached_return_t memcached_stat_servername(\fI\%memcached_stat_st\fP\fI\ *stat\fP, char\fI\ *args\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_stat_execute (memcached_st *memc, const char *args, memcached_stat_fn func, void *context); ++.B char * memcached_stat_get_value(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, const char\fI\ *key\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B char ** memcached_stat_get_keys(memcached_st\fI\ *ptr\fP, \fI\%memcached_stat_st\fP\fI\ *stat\fP, memcached_return_t\fI\ *error\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B memcached_return_t memcached_stat_execute(memcached_st\fI\ *memc\fP, const char\fI\ *args\fP, \fI\%memcached_stat_fn\fP\fI\ func\fP, void\fI\ *context\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) has the ability to query a memcached server (or collection +of servers) for their current state. Queries to find state return a - \fBmemcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fBmemcached_stat_get_value()\fP has been provided to query the structure. ++\fI\%memcached_stat_st\fP structure. You are responsible for freeing this structure. While it is possible to access the structure directly it is not advisable. \fI\%memcached_stat_get_value()\fP has been provided to query the structure. +.sp - \fBmemcached_stat_execute()\fP uses the servers found in \fBmemcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by ++\fI\%memcached_stat_execute()\fP uses the servers found in \fI\%memcached_stat_st\fP and executes a "stat" command on each server. args is an optional argument that can be passed in to modify the behavior of "stats". You will need to supply a callback function that will be supplied each pair of values returned by +the memcached server. +.sp - \fBmemcached_stat()\fP fetches an array of \fBmemcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. ++\fI\%memcached_stat()\fP fetches an array of \fI\%memcached_stat_st\fP structures containing the state of all available memcached servers. The return value must be freed by the calling application. If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, a NULL value is returned and the error parameter is set to \fBMEMCACHED_NOT_SUPPORTED\fP. +.sp - \fBmemcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either - the \fBmemcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to ++\fI\%memcached_stat_servername()\fP can be used standalone without a \fBmemcached_st\fP to obtain the state of a particular server. "args" is used to define a particular state object (a list of these are not provided for by either ++the \fI\%memcached_stat_get_keys()\fP call nor are they defined in the memcached protocol). You must specify the hostname and port of the server you want to +obtain information on. +.sp - \fBmemcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. ++\fI\%memcached_stat_get_value()\fP returns the value of a particular state key. You specify the key you wish to obtain. The key must be null terminated. +.sp - \fBmemcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. ++\fI\%memcached_stat_get_keys()\fP returns a list of keys that the server has state objects on. You are responsible for freeing this list. +.sp +A command line tool, memstat(1), is provided so that you do not have to write +an application to do this. +.SH RETURN +.sp +Varies, see particular functions. +.sp - Any method returning a \fBmemcached_stat_st\fP expects you to free the ++Any method returning a \fI\%memcached_stat_st\fP expects you to free the +memory allocated for it. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_strerror.3 index ece0dbb9,00000000..387af0b2 mode 100644,000000..100644 --- a/docs/man/memcached_strerror.3 +++ b/docs/man/memcached_strerror.3 @@@ -1,67 -1,0 +1,67 @@@ - .TH "MEMCACHED_STRERROR" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_STRERROR" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_strerror \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B const char * memcached_strerror (memcached_st *ptr, memcached_return_t rc); ++.B const char * memcached_strerror(memcached_st\fI\ *ptr\fP, memcached_return_t\fI\ rc\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_strerror()\fP takes a \fBmemcached_return_t\fP value and returns a string describing the error. ++\fI\%memcached_strerror()\fP takes a \fBmemcached_return_t\fP value and returns a string describing the error. +.sp +This string must not be modified by the application. +.sp +\fBmemcached_return_t\fP values are returned from nearly all libmemcached(3) functions. +.sp +\fBmemcached_return_t\fP values are of an enum type so that you can set up responses with switch/case and know that you are capturing all possible return values. +.SH RETURN +.sp - \fBmemcached_strerror()\fP returns a string describing a \fBmemcached_return_t\fP value. ++\fI\%memcached_strerror()\fP returns a string describing a \fBmemcached_return_t\fP value. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_touch.3 index ad463271,00000000..0cf5a252 mode 100644,000000..100644 --- a/docs/man/memcached_touch.3 +++ b/docs/man/memcached_touch.3 @@@ -1,73 -1,0 +1,73 @@@ - .TH "MEMCACHED_TOUCH" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_TOUCH" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_touch \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_touch (memcached_st *ptr, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_touch(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_touch_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_touch_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_touch()\fP is used to update the expiration time on an existing key. - \fBmemcached_touch_by_key()\fP works the same, but it takes a master key ++\fI\%memcached_touch()\fP is used to update the expiration time on an existing key. ++\fI\%memcached_touch_by_key()\fP works the same, but it takes a master key +to find the given value. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned +On success that value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_touch_by_key.3 index 61cc152d,00000000..a7e2d29f mode 100644,000000..100644 --- a/docs/man/memcached_touch_by_key.3 +++ b/docs/man/memcached_touch_by_key.3 @@@ -1,73 -1,0 +1,73 @@@ - .TH "MEMCACHED_TOUCH_BY_KEY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_TOUCH_BY_KEY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_touch_by_key \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_touch (memcached_st *ptr, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_touch(memcached_st\fI\ *ptr\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.INDENT 0.0 +.TP - .B memcached_return_t memcached_touch_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, time_t expiration); ++.B memcached_return_t memcached_touch_by_key(memcached_st\fI\ *ptr\fP, const char\fI\ *group_key\fP, size_t\fI\ group_key_length\fP, const char\fI\ *key\fP, size_t\fI\ key_length\fP, time_t\fI\ expiration\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_touch()\fP is used to update the expiration time on an existing key. - \fBmemcached_touch_by_key()\fP works the same, but it takes a master key ++\fI\%memcached_touch()\fP is used to update the expiration time on an existing key. ++\fI\%memcached_touch_by_key()\fP works the same, but it takes a master key +to find the given value. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned +On success that value will be \fBMEMCACHED_SUCCESS\fP. +Use \fBmemcached_strerror()\fP to translate this value to a printable +string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_user_data.3 index ad76dff1,00000000..c0eaa4e5 mode 100644,000000..100644 --- a/docs/man/memcached_user_data.3 +++ b/docs/man/memcached_user_data.3 @@@ -1,76 -1,0 +1,84 @@@ - .TH "MEMCACHED_USER_DATA" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_USER_DATA" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_user_data \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Manage user specific data +.SH LIBRARY +.sp +C Client Library for memcached (libmemcached, \-lmemcached) +.SH SYNOPSIS +.sp +.nf +.ft C - #include - - void *memcached_get_user_data (memcached_st *ptr); + - void *memcached_set_user_data (memcached_st *ptr, void *data); +.ft P +.fi ++.sp ++#include ++.INDENT 0.0 ++.TP ++.B void *memcached_get_user_data(memcached_st\fI\ *ptr\fP) ++.UNINDENT ++.INDENT 0.0 ++.TP ++.B void *memcached_set_user_data(memcached_st\fI\ *ptr\fP, void\fI\ *data\fP) ++.UNINDENT ++.sp ++Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +libmemcached(3) allows you to store a pointer to a user specific data inside +the memcached_st structure. +.sp - \fBmemcached_set_user_data()\fP is used to set the user specific data in the ++\fI\%memcached_set_user_data()\fP is used to set the user specific data in the +\fBmemcached_st\fP structure. +.sp - \fBmemcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure. ++\fI\%memcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure. +.SH RETURN +.sp - \fBmemcached_set_user_data()\fP returns the previous value of the user specific data. ++\fI\%memcached_set_user_data()\fP returns the previous value of the user specific data. +.sp - \fBmemcached_get_user_data()\fP returns the current value uf the user specific data. ++\fI\%memcached_get_user_data()\fP returns the current value uf the user specific data. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_verbosity.3 index 869e16db,00000000..0b90fd32 mode 100644,000000..100644 --- a/docs/man/memcached_verbosity.3 +++ b/docs/man/memcached_verbosity.3 @@@ -1,68 -1,0 +1,68 @@@ - .TH "MEMCACHED_VERBOSITY" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_VERBOSITY" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_verbosity \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Modifiy verbosity of servers +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP - .B memcached_return_t memcached_verbosity (memcached_st *ptr, unsigned int verbosity); ++.B memcached_return_t memcached_verbosity(memcached_st\fI\ *ptr\fP, uint32_t\fI\ verbosity\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp - \fBmemcached_verbosity()\fP modifies the "verbosity" of the ++\fI\%memcached_verbosity()\fP modifies the "verbosity" of the +memcached(1) servers referenced in the \fBmemcached_st\fP parameter. +.SH RETURN +.sp +A value of type \fBmemcached_return_t\fP is returned. +.sp +On success that value will be \fBMEMCACHED_SUCCESS\fP. +.sp +Use \fBmemcached_strerror()\fP to translate this value to a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcached_version.3 index 66699bad,00000000..b63754ea mode 100644,000000..100644 --- a/docs/man/memcached_version.3 +++ b/docs/man/memcached_version.3 @@@ -1,76 -1,0 +1,76 @@@ - .TH "MEMCACHED_VERSION" "3" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCACHED_VERSION" "3" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcached_version \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +#include +.INDENT 0.0 +.TP +.B const char * memcached_lib_version(void) +.UNINDENT +.INDENT 0.0 +.TP +.B memcached_return_t memcached_version(memcached_st\fI\ *ptr\fP) +.UNINDENT +.sp +Compile and link with \-lmemcached +.SH DESCRIPTION +.sp +\fI\%memcached_lib_version()\fP is used to return a simple version string representing the libmemcached version (client library version, not server version) +.sp +\fI\%memcached_version()\fP is used to set the major, minor, and micro versions of each memcached server being used by the memcached_st connection structure. It returns the memcached server return code. +.SH RETURN +.sp +\fI\%memcached_lib_version()\fP returns a string with the version of the libmemcached driver. +.sp - A value of \fBmemcached_return_t\fP is returned from :c:func:\(aqmemcached_version()\(aq ++A value of \fBmemcached_return_t\fP is returned from :c:func:\(aqmemcached_version\(aq +.sp +On success that value will be \fBMEMCACHED_SUCCESS\fP. +.sp +If called with the \fBMEMCACHED_BEHAVIOR_USE_UDP()\fP behavior set, the value \fBMEMCACHED_NOT_SUPPORTED\fP will be returned. +.sp +Use \fBmemcached_strerror()\fP to translate this value to +a printable string. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcapable.1 index a2ef9f8d,00000000..3f7e93a1 mode 100644,000000..100644 --- a/docs/man/memcapable.1 +++ b/docs/man/memcapable.1 @@@ -1,91 -1,0 +1,91 @@@ - .TH "MEMCAPABLE" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCAPABLE" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcapable \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +memcapable [options] +.SH DESCRIPTION +.sp +\fBmemcapable\fP connects to the specified memcached server and tries to +determine its capabilities by running the various commands and verifying +the response. +.SH LIMITATIONS +.sp +The current version of memcapable will only verify the binary protocol. +.SH OPTIONS +.INDENT 0.0 +.TP +.B \-h hostname +.UNINDENT +.sp +Specify the hostname to connect to. The default is \fIlocalhost\fP +.INDENT 0.0 +.TP +.B \-p port +.UNINDENT +.sp +Specify the port number to connect to. The default is \fI11211\fP +.INDENT 0.0 +.TP +.B \-c +.UNINDENT +.sp +Generate a coredump when it detects an error from the server. +.INDENT 0.0 +.TP +.B \-v +.UNINDENT +.sp +Print out the comparison when it detects an error from the server. +.INDENT 0.0 +.TP +.B \-t n +.UNINDENT +.sp +Set the timeout from an IO operation to/from the server to \fIn\fP seconds. +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Trond Norbye, <\fI\%trond.norbye@gmail.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcat.1 index 21b76d74,00000000..f40949cf mode 100644,000000..100644 --- a/docs/man/memcat.1 +++ b/docs/man/memcat.1 @@@ -1,81 -1,0 +1,81 @@@ - .TH "MEMCAT" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCAT" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcat \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +memcat [options] key +.sp +Copy a set of keys to stdout +.SH DESCRIPTION +.sp +\fBmemcat\fP outputs to stdout the value a single or multiple set of keys +stored in a memcached(1) server. If any key is not found an error is returned. +.sp +It is similar to the standard UNIX cat(1) utility. +.SH OPTIONS +.sp +You can specify servers via the option: +.INDENT 0.0 +.TP +.B \-\-servers +.UNINDENT +.sp +or via the environment variable: +.INDENT 0.0 +.TP +.B \(gaMEMCACHED_SERVERS\(ga +.UNINDENT +.sp +For a full list of operations run the tool with the option: +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Mark Atwood <\fI\%mark@fallenpegasus.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memcp.1 index 5bdedee5,00000000..ee7cf63c mode 100644,000000..100644 --- a/docs/man/memcp.1 +++ b/docs/man/memcp.1 @@@ -1,84 -1,0 +1,84 @@@ - .TH "MEMCP" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMCP" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memcp \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Copies files to a collection of memcached servers +.SH SYNOPSIS +.sp +memcp [options] [file] [server] +.SH DESCRIPTION +.sp +\fBmemcp\fP copies one or more files into memcached(1) servers. +It is similar to the standard UNIX cp(1) command. +.sp +The key names will be the names of the files, +without any directory path. +.SH OPTIONS +.sp +You can specify servers via the option: +.INDENT 0.0 +.TP +.B \-\-servers +.UNINDENT +.sp +or via the environment variable: +.INDENT 0.0 +.TP +.B \(gaMEMCACHED_SERVERS\(ga +.UNINDENT +.sp +If you do not specify either these, the final value in the command line list is the name of a server(s). +.sp +For a full list of operations run the tool with the option: +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Mark Atwood, <\fI\%mark@fallenpegasus.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memdump.1 index b40ed667,00000000..9e2de1ef mode 100644,000000..100644 --- a/docs/man/memdump.1 +++ b/docs/man/memdump.1 @@@ -1,66 -1,0 +1,66 @@@ - .TH "MEMDUMP" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMDUMP" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memdump \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Dump a list of keys from a server. +.SH SYNOPSIS +.sp +memdump [options] +.SH DESCRIPTION +.sp +\fBmemdump\fP dumps a list of "keys" from all servers that +it is told to fetch from. Because memcached does not guarentee to +provide all keys it is not possible to get a complete "dump". +.SH OPTIONS +.sp +For a full list of operations run the tool with option: +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memerror.1 index 98f697b4,00000000..b38ea729 mode 100644,000000..100644 --- a/docs/man/memerror.1 +++ b/docs/man/memerror.1 @@@ -1,65 -1,0 +1,65 @@@ - .TH "MEMERROR" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMERROR" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memerror \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Translates a memcached error code into a string +.SH SYNOPSIS +.sp +memerror [options] [error code] +.SH DESCRIPTION +.sp +\fBmemerror\fP translates an error code from libmemcached(3) into a human +readable string. +.SH OPTIONS +.sp +For a full list of operations run the tool with option: +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT +.SH HOME +.sp +To find out more infoerroration please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memflush.1 index cb21de6b,00000000..5303020e mode 100644,000000..100644 --- a/docs/man/memflush.1 +++ b/docs/man/memflush.1 @@@ -1,79 -1,0 +1,79 @@@ - .TH "MEMFLUSH" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMFLUSH" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memflush \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +Reset a server or list of servers +.SH SYNOPSIS +.sp +memflush [options] +.SH DESCRIPTION +.sp +\fBmemflush\fP resets the contents of memcached(1) servers. +This means that all data in the specified servers will be deleted. +.SH OPTIONS +.sp +You can specify servers via the option: +.INDENT 0.0 +.TP +.B \-\-servers +.UNINDENT +.sp +or via the environment variable: +.INDENT 0.0 +.TP +.B \(gaMEMCACHED_SERVERS\(ga +.UNINDENT +.sp +For a full list of operations run the tool with option: +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Mark Atwood <\fI\%mark@fallenpegasus.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memrm.1 index 4cd4fab9,00000000..6b2a80c7 mode 100644,000000..100644 --- a/docs/man/memrm.1 +++ b/docs/man/memrm.1 @@@ -1,78 -1,0 +1,78 @@@ - .TH "MEMRM" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMRM" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memrm \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +memrm \- Remove a key(s) from a collection of memcached servers +.SH SYNOPSIS +.sp +memrm [options] [key] +.SH DESCRIPTION +.sp +\fBmemrm\fP removes items, specified by key, from memcached(1) servers. +.SH OPTIONS +.sp +You can specify servers via the option: +.INDENT 0.0 +.TP +.B \-\-servers +.UNINDENT +.sp +or via the environment variable: +.INDENT 0.0 +.TP +.B \(gaMEMCACHED_SERVERS\(ga +.UNINDENT +.sp +For a full list of operations run the tool with the +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.sp +Mark Atwood, <\fI\%mark@fallenpegasus.com\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memslap.1 index 4438e460,00000000..78f333ef mode 100644,000000..100644 --- a/docs/man/memslap.1 +++ b/docs/man/memslap.1 @@@ -1,75 -1,0 +1,75 @@@ - .TH "MEMSLAP" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMSLAP" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memslap \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +memslap [options] +.SH DESCRIPTION +.sp +\fBmemslap\fP is a load generation and benchmark tool for memcached(1) +servers. It generates configurable workload such as threads, concurrencies, connections, run time, overwrite, miss rate, key size, value size, get/set proportion, expected throughput, and so on. +.SH OPTIONS +.sp +You can specify servers via the option: +.INDENT 0.0 +.TP +.B \-\-servers +.UNINDENT +.sp +or via the environment variable: +.INDENT 0.0 +.TP +.B \(gaMEMCACHED_SERVERS\(ga +.UNINDENT +.sp +For a full list of operations run the tool with: +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT +.SH HOME +.sp +To find out more information please check: +\(aq\fI\%http://libmemcached.org/\fP <\fI\%http://libmemcached.org/\fP>\(aq_ +.SH AUTHOR +.sp +Brian Aker, <\fI\%brian@tangent.org\fP> +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +. diff --cc docs/man/memstat.1 index 1399f477,00000000..392d03bd mode 100644,000000..100644 --- a/docs/man/memstat.1 +++ b/docs/man/memstat.1 @@@ -1,76 -1,0 +1,80 @@@ - .TH "MEMSTAT" "1" "January 26, 2012" "1.0.4" "libmemcached" ++.TH "MEMSTAT" "1" "March 14, 2012" "1.0.5" "libmemcached" +.SH NAME +memstat \- libmemcached Documentation +. +.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 +.. +.\" Man page generated from reStructeredText. +. +.sp +memstat \- Display the operating status of a single or group of memcached servers +.SH SYNOPSIS +.sp +memstat [options] +.SH DESCRIPTION +.sp +\fBmemstat\fP dumps the state of memcached(1) servers. +It displays all data to stdout. +.SH OPTIONS +.sp +You can specify servers via the option: +.INDENT 0.0 +.TP +.B \-\-servers +.UNINDENT +.sp +or via the environment variable: +.INDENT 0.0 +.TP +.B \(aqMEMCACHED_SERVERS, \-\-args\(aq +.UNINDENT +.sp +which can be used to specify the "argument" sent to the stats command (ie slab, size, items, etc..). +.sp +For a full list of operations run the tool with: +.INDENT 0.0 +.TP +.B \-\-help +.UNINDENT ++.INDENT 0.0 ++.TP ++.B \-\-analyze ++.UNINDENT +.SH HOME +.sp +To find out more information please check: +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fImemcached(1)\fP \fIlibmemcached(3)\fP +.SH AUTHOR +Brian Aker +.SH COPYRIGHT +2011, Brian Aker DataDifferential, http://datadifferential.com/ +.\" Generated by docutils manpage writer. +.\" +.