-.TH "HASHKIT_CLONE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_CLONE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_clone \- libhashkit Documentation
.
#include <libhashkit/hashkit.h>
.INDENT 0.0
.TP
+.B hashkit_st
+.UNINDENT
+.INDENT 0.0
+.TP
.B hashkit_st *hashkit_create(hashkit_st *hash);
.UNINDENT
.INDENT 0.0
Compile and link with \-lhashkit
.SH DESCRIPTION
.sp
-The hashkit_create() function initializes a hashkit object for use. If
+The \fBhashkit_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 hashkit_clone() function initializes a hashkit object much like
-hashkit_create(), but instead of using default settings it will use
+The \fBhashkit_clone()\fP function initializes a hashkit object much like
+\fBhashkit_create()\fP, but instead of using default settings it will use
the settings of the ptr hashkit object.
.sp
-The hashkit_free() frees any resources being consumed by the hashkit
-objects that were initialized with hashkit_create() or hashkit_clone().
+The \fBhashkit_free()\fP frees any resources being consumed by the hashkit
+objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP.
.sp
-The hashkit_is_allocated() reports where the memory was allocated
+The \fBhashkit_is_allocated()\fP reports where the memory was allocated
for a hashkit object.
.SH RETURN VALUE
.sp
-hashkit_create() and hashkit_clone() will return NULL on failure or
-non\-NULL on success.
+\fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on
+failure or non\-NULL on success.
.sp
-hashkit_is_allocated() returns true if the memory for the hashkit
-object was allocated inside of hashkit_create() or hashkit_clone(),
-otherwise it is false and was user\-supplied memory.
+\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.
.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
-.TH "HASHKIT_CRC32" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_CRC32" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_crc32 \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_CREATE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_CREATE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_create \- libhashkit Documentation
.
#include <libhashkit/hashkit.h>
.INDENT 0.0
.TP
+.B hashkit_st
+.UNINDENT
+.INDENT 0.0
+.TP
.B hashkit_st *hashkit_create(hashkit_st *hash);
.UNINDENT
.INDENT 0.0
Compile and link with \-lhashkit
.SH DESCRIPTION
.sp
-The hashkit_create() function initializes a hashkit object for use. If
+The \fBhashkit_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 hashkit_clone() function initializes a hashkit object much like
-hashkit_create(), but instead of using default settings it will use
+The \fBhashkit_clone()\fP function initializes a hashkit object much like
+\fBhashkit_create()\fP, but instead of using default settings it will use
the settings of the ptr hashkit object.
.sp
-The hashkit_free() frees any resources being consumed by the hashkit
-objects that were initialized with hashkit_create() or hashkit_clone().
+The \fBhashkit_free()\fP frees any resources being consumed by the hashkit
+objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP.
.sp
-The hashkit_is_allocated() reports where the memory was allocated
+The \fBhashkit_is_allocated()\fP reports where the memory was allocated
for a hashkit object.
.SH RETURN VALUE
.sp
-hashkit_create() and hashkit_clone() will return NULL on failure or
-non\-NULL on success.
+\fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on
+failure or non\-NULL on success.
.sp
-hashkit_is_allocated() returns true if the memory for the hashkit
-object was allocated inside of hashkit_create() or hashkit_clone(),
-otherwise it is false and was user\-supplied memory.
+\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.
.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
-.TH "HASHKIT_FNV1_32" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_FNV1_32" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_fnv1_32 \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_FNV1_64" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_FNV1_64" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_fnv1_64 \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_FNV1A_32" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_FNV1A_32" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_fnv1a_32 \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_FNV1A_64" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_FNV1A_64" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_fnv1a_64 \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_FREE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_FREE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_free \- libhashkit Documentation
.
#include <libhashkit/hashkit.h>
.INDENT 0.0
.TP
+.B hashkit_st
+.UNINDENT
+.INDENT 0.0
+.TP
.B hashkit_st *hashkit_create(hashkit_st *hash);
.UNINDENT
.INDENT 0.0
Compile and link with \-lhashkit
.SH DESCRIPTION
.sp
-The hashkit_create() function initializes a hashkit object for use. If
+The \fBhashkit_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 hashkit_clone() function initializes a hashkit object much like
-hashkit_create(), but instead of using default settings it will use
+The \fBhashkit_clone()\fP function initializes a hashkit object much like
+\fBhashkit_create()\fP, but instead of using default settings it will use
the settings of the ptr hashkit object.
.sp
-The hashkit_free() frees any resources being consumed by the hashkit
-objects that were initialized with hashkit_create() or hashkit_clone().
+The \fBhashkit_free()\fP frees any resources being consumed by the hashkit
+objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP.
.sp
-The hashkit_is_allocated() reports where the memory was allocated
+The \fBhashkit_is_allocated()\fP reports where the memory was allocated
for a hashkit object.
.SH RETURN VALUE
.sp
-hashkit_create() and hashkit_clone() will return NULL on failure or
-non\-NULL on success.
+\fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on
+failure or non\-NULL on success.
.sp
-hashkit_is_allocated() returns true if the memory for the hashkit
-object was allocated inside of hashkit_create() or hashkit_clone(),
-otherwise it is false and was user\-supplied memory.
+\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.
.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
-.TH "HASHKIT_FUNCTIONS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_FUNCTIONS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_functions \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_HSIEH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_HSIEH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_hsieh \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_IS_ALLOCATED" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_IS_ALLOCATED" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_is_allocated \- libhashkit Documentation
.
#include <libhashkit/hashkit.h>
.INDENT 0.0
.TP
+.B hashkit_st
+.UNINDENT
+.INDENT 0.0
+.TP
.B hashkit_st *hashkit_create(hashkit_st *hash);
.UNINDENT
.INDENT 0.0
Compile and link with \-lhashkit
.SH DESCRIPTION
.sp
-The hashkit_create() function initializes a hashkit object for use. If
+The \fBhashkit_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 hashkit_clone() function initializes a hashkit object much like
-hashkit_create(), but instead of using default settings it will use
+The \fBhashkit_clone()\fP function initializes a hashkit object much like
+\fBhashkit_create()\fP, but instead of using default settings it will use
the settings of the ptr hashkit object.
.sp
-The hashkit_free() frees any resources being consumed by the hashkit
-objects that were initialized with hashkit_create() or hashkit_clone().
+The \fBhashkit_free()\fP frees any resources being consumed by the hashkit
+objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP.
.sp
-The hashkit_is_allocated() reports where the memory was allocated
+The \fBhashkit_is_allocated()\fP reports where the memory was allocated
for a hashkit object.
.SH RETURN VALUE
.sp
-hashkit_create() and hashkit_clone() will return NULL on failure or
-non\-NULL on success.
+\fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on
+failure or non\-NULL on success.
.sp
-hashkit_is_allocated() returns true if the memory for the hashkit
-object was allocated inside of hashkit_create() or hashkit_clone(),
-otherwise it is false and was user\-supplied memory.
+\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.
.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
-.TH "HASHKIT_JENKINS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_JENKINS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_jenkins \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_MD5" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_MD5" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_md5 \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_MURMUR" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_MURMUR" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_murmur \- libhashkit Documentation
.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
-hashkit_set_continuum_hash_fn(3)
+\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
-.TH "HASHKIT_VALUE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "HASHKIT_VALUE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
hashkit_value \- libhashkit Documentation
.
Compile and link with \-lhashkit
.SH DESCRIPTION
.sp
-The hashkit_value() function generates a 32\-bit hash value from the
+The \fBhashkit_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.
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-hashkit_create(3) hashkit_set_distribution(3) hashkit_set_hash_fn(3)
+\fIhashkit_create(3)\fP \fIhashkit_set_distribution(3)\fP \fIhashkit_set_hash_fn(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "LIBHASHKIT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "LIBHASHKIT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
libhashkit \- libhashkit Documentation
.
.fi
.SH DESCRIPTION
.sp
-\fBlibhashkit\fP is a small and thread\-safe client library that provides a collection of useful hashing algorithm. libhashkit is distributed with libmemcached.
+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:
-.TH "LIBMEMCACHED" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "LIBMEMCACHED" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
libmemcached \- Introducing the C Client Library for memcached
.
#include <libmemcached/memcached.h>
.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://danga.com/memcached\fP). It has been designed to be light on memory usage, thread safe, and provide full access to server side methods.
.sp
a modular and consistent method of object distribution.
.sp
There are multiple implemented routing and hashing methods. See the
-memcached_behavior_set() manpage for more information.
+\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 memcached_create(). Functions have been
-written in order to encapsulate the \fBmemcached_st\fP. It is not
+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 memcached_strerror(3).
+This value can be translated to a printable string with
+\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
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)
.sp
-Some features of the library must be enabled through memcached_behavior_set().
+Some features of the library must be enabled through \fBmemcached_behavior_set()\fP.
.sp
Hope you enjoy it!
.SH CONSTANTS
.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
-memcached_quit(3) on a \fBmemcached_st\fP and then use the resulting cloned
-structure.
+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:
-.TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
libmemcached_check_configuration \- libmemcached Documentation
.
.SH DESCRIPTION
.sp
Libmemcached implements a custom language for configuring and modifying
-servers. By passing in an option string you can generate a memcached_st object
+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
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=<filepath>/?<optional_weight>
+.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
End configutation processing and throw an error.
.SH RETURN
.sp
-memcached() returns a pointer to the memcached_st that was
+\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
-.TH "LIBMEMCACHED_CONFIGURATION" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "LIBMEMCACHED_CONFIGURATION" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
libmemcached_configuration \- libmemcached Documentation
.
.SH DESCRIPTION
.sp
Libmemcached implements a custom language for configuring and modifying
-servers. By passing in an option string you can generate a memcached_st object
+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
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=<filepath>/?<optional_weight>
+.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
End configutation processing and throw an error.
.SH RETURN
.sp
-memcached() returns a pointer to the memcached_st that was
+\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
-.TH "LIBMEMCACHED_EXAMPLES" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "LIBMEMCACHED_EXAMPLES" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
libmemcached_examples \- libmemcached Documentation
.
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);
+ 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 \fImemcached_create_with_options(3)\fP.
+In the above code you create a \fBmemcached_st\fP object with three server
+by making use of \fBmemcached_create_with_options()\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));
.fi
.sp
In the above code you create a \fBmemcached_pool_st\fP object with three
-server by making use of \fImemcached_pool(3)\fP.
+server by making use of \fBmemcached_pool()\fP.
.sp
-When memcached_pool_destroy() all memory will be released that is associated
+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";
-.TH "LIBMEMCACHEDUTIL" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "LIBMEMCACHEDUTIL" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
libmemcachedutil \- libmemcached Documentation
.
.fi
.SH DESCRIPTION
.sp
-\fBlibmemcachedutil\fP is a small and thread\-safe client library that provides
-extra functionality built on top of \fBlibmemcached\fP.
+\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 memcached_pool_create(3).
+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
+\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
-.TH "MEMASLAP" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMASLAP" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memaslap \- libmemcached Documentation
.
.
.SH SYNOPSIS
.sp
-:program:: \fImemaslap\fP
+memaslap [options]
.INDENT 0.0
.TP
.B \-\-help
.UNINDENT
.SH DESCRIPTION
.sp
-\fBmemaslap\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. Furthermore, it also testss data
+\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
-Memslap manages network connections like memcached with
+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 \fB\-\-servers\fP option or via the
+You can specify servers via the \fI\-\-servers\fP option or via the
environment variable \fBMEMCACHED_SERVERS\fP.
.SH FEATURES
.sp
.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 testss multiple servers. The only
+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 tests multiple servers is for replication
+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.
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
-testss UDP. Because UDP is unreliable, dropped packages and out\-of\-order
+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
concurrency is 16. The user can use “—threads” and “\-\-concurrency” to
specify these variables.
.sp
-If the system testss setting CPU affinity and the number of threads
+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
-.TH "MEMCACHED" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached \- libmemcached Documentation
.
.SH DESCRIPTION
.sp
Libmemcached implements a custom language for configuring and modifying
-servers. By passing in an option string you can generate a memcached_st object
+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
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=<filepath>/?<optional_weight>
+.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
End configutation processing and throw an error.
.SH RETURN
.sp
-memcached() returns a pointer to the memcached_st that was
+\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
-.TH "MEMCACHED_ADD" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_ADD" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_add \- Storing and Replacing Data
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_set(), memcached_add(), and memcached_replace() 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
-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.
+\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
+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
-memcached_set() 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
+\fBmemcached_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
-memcached_replace() replaces an object on the server. If the object is not
-found on the server an error occurs.
+\fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs.
.sp
-memcached_add() adds an object to the server. If the object is found on the
-server an error occurs, otherwise the value is stored.
+\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.
.sp
-memcached_cas() 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 memcached_result_cas() on a memcached_result_st(3) structure. At the point
+\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
information on how to do this.
.sp
-memcached_set_by_key(), memcached_add_by_key(), and memcached_replace_by_key()
-methods all behave in a similar method as the non key
-methods. The difference is that they use their group_key parameter to map
+\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
+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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() to translate this value to a printable string.
+Use \fBmemcached_strerror()\fP to translate this value to a printable string.
.sp
-For memcached_replace() and memcached_add(), \fBMEMCACHED_NOTSTORED\fP is a
-legitmate error in the case of a collision.
+For \fBmemcached_replace()\fP and \fBmemcached_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
-memcached(1) libmemached(3) memcached_strerror(3) memcached_prepend(3) memcached_cas(3) memcached_append(3)
+\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
-.TH "MEMCACHED_ADD_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_ADD_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_add_by_key \- Storing and Replacing Data
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_set(), memcached_add(), and memcached_replace() 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
-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.
+\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
+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
-memcached_set() 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
+\fBmemcached_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
-memcached_replace() replaces an object on the server. If the object is not
-found on the server an error occurs.
+\fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs.
.sp
-memcached_add() adds an object to the server. If the object is found on the
-server an error occurs, otherwise the value is stored.
+\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.
.sp
-memcached_cas() 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 memcached_result_cas() on a memcached_result_st(3) structure. At the point
+\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
information on how to do this.
.sp
-memcached_set_by_key(), memcached_add_by_key(), and memcached_replace_by_key()
-methods all behave in a similar method as the non key
-methods. The difference is that they use their group_key parameter to map
+\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
+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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() to translate this value to a printable string.
+Use \fBmemcached_strerror()\fP to translate this value to a printable string.
.sp
-For memcached_replace() and memcached_add(), \fBMEMCACHED_NOTSTORED\fP is a
-legitmate error in the case of a collision.
+For \fBmemcached_replace()\fP and \fBmemcached_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
-memcached(1) libmemached(3) memcached_strerror(3) memcached_prepend(3) memcached_cas(3) memcached_append(3)
+\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
-.TH "MEMCACHED_ANALYZE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_ANALYZE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_analyze \- libmemcached Documentation
.
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
+\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.
.sp
-memcached_analyze() analyzes useful information based on the provided servers
-and sets the result to the \fBmemcached_analysis_st\fP structure. The return value
-must be freed by the calling application.
+\fBmemcached_analyze()\fP analyzes useful information based on the
+provided servers and sets the result to the \fBmemcached_analysis_st\fP
+structure. The return value must be freed by the calling application.
.sp
-A command line tool, memstat(1) with the option \-\-analyze, is provided so that
-you do not have to write an application to use this method.
+A command line tool, \fBmemstat()\fP with the option \fI\-\-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 success and
-a NULL pointer on failure. You may inspect the error detail by checking the
-\fBmemcached_return_t\fP value.
+A pointer to the allocated \fBmemcached_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
memory allocated for it.
-.TH "MEMCACHED_APPEND" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_APPEND" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_append \- Appending to or Prepending to data on the server
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_prepend() and memcached_append are used to
+\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(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 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.
+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
-memcached_prepend() places a segment of data before the last piece of data
-stored. Currently expiration and key are not used in the server.
+\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
-memcached_append() 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.
+\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
-memcached_prepend_by_key() and memcached_append_by_key_by_key(,
-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.
+\fBmemcached_prepend_by_key()\fP and
+\fBmemcached_append_by_key_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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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
+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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() 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 SEE ALSO
.sp
-memcached(1) libmemached(3) memcached_strerror(3) memcached_set(3) memcached_add(3) memcached_cas(3) memcached_replace(3)
+\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
-.TH "MEMCACHED_APPEND_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_APPEND_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_append_by_key \- Appending to or Prepending to data on the server
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_prepend() and memcached_append are used to
+\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(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 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.
+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
-memcached_prepend() places a segment of data before the last piece of data
-stored. Currently expiration and key are not used in the server.
+\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
-memcached_append() 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.
+\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
-memcached_prepend_by_key() and memcached_append_by_key_by_key(,
-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.
+\fBmemcached_prepend_by_key()\fP and
+\fBmemcached_append_by_key_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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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
+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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() 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 SEE ALSO
.sp
-memcached(1) libmemached(3) memcached_strerror(3) memcached_set(3) memcached_add(3) memcached_cas(3) memcached_replace(3)
+\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
-.TH "MEMCACHED_AUTO" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_AUTO" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_auto \- Incrementing and Decrementing Values
.
-.TH "MEMCACHED_BEHAVIOR" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_BEHAVIOR" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_behavior \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-\fIlibmemcached(3)\fP behavior can be modified by use memcached_behavior_set().
-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, memcached_set() will always respond with
-\fBMEMCACHED_SUCCESS\fP).
+\fIlibmemcached(3)\fP behavior can be modified by using \fBmemcached_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
-memcached_behavior_get() takes a behavior flag and returns whether or not
-that behavior is currently enabled in the client.
+\fBmemcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client.
.sp
-memcached_behavior_set() 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
-memcached_behavior_set() will flush and reset all connections.
+\fBmemcached_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.
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_USE_UDP
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 MEMCACHED_BEHAVIOR_USE_UDP
-enabled: memcached_version(), memcached_stat(), memcached_get(),
-memcached_get_by_key(), memcached_mget(), memcached_mget_by_key(),
-memcached_fetch(), memcached_fetch_result(), memcached_value_fetch().
+\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.
.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.
+\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.
+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
.B MEMCACHED_BEHAVIOR_HASH
.UNINDENT
.sp
-Makes the default hashing algorithm for keys use MD5. 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, MEMCACHED_HASH_FNV1A_32, MEMCACHED_HASH_JENKINS, MEMCACHED_HASH_HSIEH, and MEMCACHED_HASH_MURMUR.
+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.
+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 MEMCACHED_HASH_HSIEH 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.
+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
.B MEMCACHED_BEHAVIOR_CACHE_LOOKUPS
.UNINDENT
.sp
-DEPRECATED. Memcached can cache named lookups so that DNS lookups are made only once.
+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
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED
-.UNINDENT
-.sp
+.
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
.B MEMCACHED_BEHAVIOR_USER_DATA
.UNINDENT
.sp
-DEPRECATED
+Deprecated since version <: 0.30
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_BUFFER_REQUESTS
.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT
.UNINDENT
.sp
-DEPRECATED, please see MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS. This number of times a host can have an error before it is disabled.
+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, please see 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. This must be used in combination with MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT.
+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
-.UNINDENT
-.sp
+.
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
.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.
+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
-.TH "MEMCACHED_BEHAVIOR_GET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_BEHAVIOR_GET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_behavior_get \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-\fIlibmemcached(3)\fP behavior can be modified by use memcached_behavior_set().
-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, memcached_set() will always respond with
-\fBMEMCACHED_SUCCESS\fP).
+\fIlibmemcached(3)\fP behavior can be modified by using \fBmemcached_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
-memcached_behavior_get() takes a behavior flag and returns whether or not
-that behavior is currently enabled in the client.
+\fBmemcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client.
.sp
-memcached_behavior_set() 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
-memcached_behavior_set() will flush and reset all connections.
+\fBmemcached_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.
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_USE_UDP
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 MEMCACHED_BEHAVIOR_USE_UDP
-enabled: memcached_version(), memcached_stat(), memcached_get(),
-memcached_get_by_key(), memcached_mget(), memcached_mget_by_key(),
-memcached_fetch(), memcached_fetch_result(), memcached_value_fetch().
+\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.
.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.
+\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.
+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
.B MEMCACHED_BEHAVIOR_HASH
.UNINDENT
.sp
-Makes the default hashing algorithm for keys use MD5. 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, MEMCACHED_HASH_FNV1A_32, MEMCACHED_HASH_JENKINS, MEMCACHED_HASH_HSIEH, and MEMCACHED_HASH_MURMUR.
+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.
+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 MEMCACHED_HASH_HSIEH 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.
+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
.B MEMCACHED_BEHAVIOR_CACHE_LOOKUPS
.UNINDENT
.sp
-DEPRECATED. Memcached can cache named lookups so that DNS lookups are made only once.
+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
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED
-.UNINDENT
-.sp
+.
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
.B MEMCACHED_BEHAVIOR_USER_DATA
.UNINDENT
.sp
-DEPRECATED
+Deprecated since version <: 0.30
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_BUFFER_REQUESTS
.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT
.UNINDENT
.sp
-DEPRECATED, please see MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS. This number of times a host can have an error before it is disabled.
+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, please see 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. This must be used in combination with MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT.
+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
-.UNINDENT
-.sp
+.
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
.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.
+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
-.TH "MEMCACHED_BEHAVIOR_SET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_BEHAVIOR_SET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_behavior_set \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-\fIlibmemcached(3)\fP behavior can be modified by use memcached_behavior_set().
-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, memcached_set() will always respond with
-\fBMEMCACHED_SUCCESS\fP).
+\fIlibmemcached(3)\fP behavior can be modified by using \fBmemcached_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
-memcached_behavior_get() takes a behavior flag and returns whether or not
-that behavior is currently enabled in the client.
+\fBmemcached_behavior_get()\fP takes a behavior flag and returns whether or not that behavior is currently enabled in the client.
.sp
-memcached_behavior_set() 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
-memcached_behavior_set() will flush and reset all connections.
+\fBmemcached_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.
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_USE_UDP
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 MEMCACHED_BEHAVIOR_USE_UDP
-enabled: memcached_version(), memcached_stat(), memcached_get(),
-memcached_get_by_key(), memcached_mget(), memcached_mget_by_key(),
-memcached_fetch(), memcached_fetch_result(), memcached_value_fetch().
+\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.
.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.
+\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.
+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
.B MEMCACHED_BEHAVIOR_HASH
.UNINDENT
.sp
-Makes the default hashing algorithm for keys use MD5. 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, MEMCACHED_HASH_FNV1A_32, MEMCACHED_HASH_JENKINS, MEMCACHED_HASH_HSIEH, and MEMCACHED_HASH_MURMUR.
+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.
+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 MEMCACHED_HASH_HSIEH 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.
+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
.B MEMCACHED_BEHAVIOR_CACHE_LOOKUPS
.UNINDENT
.sp
-DEPRECATED. Memcached can cache named lookups so that DNS lookups are made only once.
+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
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED
-.UNINDENT
-.sp
+.
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
.B MEMCACHED_BEHAVIOR_USER_DATA
.UNINDENT
.sp
-DEPRECATED
+Deprecated since version <: 0.30
.INDENT 0.0
.TP
.B MEMCACHED_BEHAVIOR_BUFFER_REQUESTS
.B MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT
.UNINDENT
.sp
-DEPRECATED, please see MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS. This number of times a host can have an error before it is disabled.
+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, please see 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. This must be used in combination with MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT.
+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
-.UNINDENT
-.sp
+.
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
.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.
+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
-.TH "MEMCACHED_CALLBACK" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_CALLBACK" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_callback \- libmemcached Documentation
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, void *data);
+.B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, const void *data);
.UNINDENT
.INDENT 0.0
.TP
provide function calls at points in the code, or return pointers to
structures for particular usages.
.sp
-memcached_callback_get() takes a callback flag and returns the structure or
-function set by memcached_callback_set().
+\fBmemcached_callback_get()\fP takes a callback flag and returns the
+structure or function set by \fBmemcached_callback_set()\fP.
.sp
-memcached_callback_set() changes the function/structure assigned by a
+\fBmemcached_callback_set()\fP changes the function/structure assigned by a
callback flag. No connections are reset.
.sp
-You can use MEMCACHED_CALLBACK_USER_DATA to provide custom context if required for any of the callbacks.
+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 memcached_delete() is called this function will be excuted. At the point of its execution all connections are closed.
+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 memcached_delete() is called this function will be excuted. At the
-point of its execution all connections are closed.
+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 MEMCACHED_PREFIX_KEY_MAX_SIZE \- 1 and will reduce MEMCACHED_MAX_KEY by the value of your key.
+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
+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. MEMCACHED_FAILURE will be returned if no key is set. In the case of a key which is too long, MEMCACHED_BAD_KEY_PROVIDED will be returned.
+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
.UNINDENT
.sp
This allows you to store a pointer to a specifc piece of data. This can be
-retrieved from inside of memcached_fetch_execute(). Cloning a memcached_st
-will copy the pointer to the clone.
+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: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_REALLOC_FUNCTION
.UNINDENT
.sp
-DEPRECATED: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_FREE_FUNCTION
.UNINDENT
.sp
-DEPRECATED: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_GET_FAILURE
.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 memcached_st in order to
+You must clone the \fBmemcached_st\fP in order to
make use of it. The value will be stored only if you return
-MEMCACHED_SUCCESS or MEMCACHED_BUFFERED. Returning MEMCACHED_BUFFERED 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).
+\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:
-memcached_return_t (*memcached_trigger_key)(memcached_st *ptr, char *key, size_t key_length, memcached_result_st *result);
+.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
.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: typedef memcached_return_t (*memcached_trigger_delete_key)(memcached_st *ptr, char *key, size_t key_length);
+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
-memcached_callback_get() return the function or structure that was provided.
-Upon error, nothing is set, null is returned, and the memcached_return_t
-argument is set to MEMCACHED_FAILURE.
+\fBmemcached_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
-memcached_callback_set() returns MEMCACHED_SUCCESS upon successful setting,
-otherwise MEMCACHED_FAILURE on error.
+\fBmemcached_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:
-.TH "MEMCACHED_CALLBACK_GET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_CALLBACK_GET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_callback_get \- libmemcached Documentation
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, void *data);
+.B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, const void *data);
.UNINDENT
.INDENT 0.0
.TP
provide function calls at points in the code, or return pointers to
structures for particular usages.
.sp
-memcached_callback_get() takes a callback flag and returns the structure or
-function set by memcached_callback_set().
+\fBmemcached_callback_get()\fP takes a callback flag and returns the
+structure or function set by \fBmemcached_callback_set()\fP.
.sp
-memcached_callback_set() changes the function/structure assigned by a
+\fBmemcached_callback_set()\fP changes the function/structure assigned by a
callback flag. No connections are reset.
.sp
-You can use MEMCACHED_CALLBACK_USER_DATA to provide custom context if required for any of the callbacks.
+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 memcached_delete() is called this function will be excuted. At the point of its execution all connections are closed.
+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 memcached_delete() is called this function will be excuted. At the
-point of its execution all connections are closed.
+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 MEMCACHED_PREFIX_KEY_MAX_SIZE \- 1 and will reduce MEMCACHED_MAX_KEY by the value of your key.
+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
+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. MEMCACHED_FAILURE will be returned if no key is set. In the case of a key which is too long, MEMCACHED_BAD_KEY_PROVIDED will be returned.
+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
.UNINDENT
.sp
This allows you to store a pointer to a specifc piece of data. This can be
-retrieved from inside of memcached_fetch_execute(). Cloning a memcached_st
-will copy the pointer to the clone.
+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: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_REALLOC_FUNCTION
.UNINDENT
.sp
-DEPRECATED: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_FREE_FUNCTION
.UNINDENT
.sp
-DEPRECATED: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_GET_FAILURE
.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 memcached_st in order to
+You must clone the \fBmemcached_st\fP in order to
make use of it. The value will be stored only if you return
-MEMCACHED_SUCCESS or MEMCACHED_BUFFERED. Returning MEMCACHED_BUFFERED 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).
+\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:
-memcached_return_t (*memcached_trigger_key)(memcached_st *ptr, char *key, size_t key_length, memcached_result_st *result);
+.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
.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: typedef memcached_return_t (*memcached_trigger_delete_key)(memcached_st *ptr, char *key, size_t key_length);
+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
-memcached_callback_get() return the function or structure that was provided.
-Upon error, nothing is set, null is returned, and the memcached_return_t
-argument is set to MEMCACHED_FAILURE.
+\fBmemcached_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
-memcached_callback_set() returns MEMCACHED_SUCCESS upon successful setting,
-otherwise MEMCACHED_FAILURE on error.
+\fBmemcached_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:
-.TH "MEMCACHED_CALLBACK_SET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_CALLBACK_SET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_callback_set \- libmemcached Documentation
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, void *data);
+.B memcached_return_t memcached_callback_set (memcached_st *ptr, memcached_callback_t flag, const void *data);
.UNINDENT
.INDENT 0.0
.TP
provide function calls at points in the code, or return pointers to
structures for particular usages.
.sp
-memcached_callback_get() takes a callback flag and returns the structure or
-function set by memcached_callback_set().
+\fBmemcached_callback_get()\fP takes a callback flag and returns the
+structure or function set by \fBmemcached_callback_set()\fP.
.sp
-memcached_callback_set() changes the function/structure assigned by a
+\fBmemcached_callback_set()\fP changes the function/structure assigned by a
callback flag. No connections are reset.
.sp
-You can use MEMCACHED_CALLBACK_USER_DATA to provide custom context if required for any of the callbacks.
+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 memcached_delete() is called this function will be excuted. At the point of its execution all connections are closed.
+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 memcached_delete() is called this function will be excuted. At the
-point of its execution all connections are closed.
+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 MEMCACHED_PREFIX_KEY_MAX_SIZE \- 1 and will reduce MEMCACHED_MAX_KEY by the value of your key.
+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
+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. MEMCACHED_FAILURE will be returned if no key is set. In the case of a key which is too long, MEMCACHED_BAD_KEY_PROVIDED will be returned.
+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
.UNINDENT
.sp
This allows you to store a pointer to a specifc piece of data. This can be
-retrieved from inside of memcached_fetch_execute(). Cloning a memcached_st
-will copy the pointer to the clone.
+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: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_REALLOC_FUNCTION
.UNINDENT
.sp
-DEPRECATED: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_FREE_FUNCTION
.UNINDENT
.sp
-DEPRECATED: use memcached_set_memory_allocators instead.
+Deprecated since version <0.32: Use \fBmemcached_set_memory_allocators\fP instead.
.INDENT 0.0
.TP
.B MEMCACHED_CALLBACK_GET_FAILURE
.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 memcached_st in order to
+You must clone the \fBmemcached_st\fP in order to
make use of it. The value will be stored only if you return
-MEMCACHED_SUCCESS or MEMCACHED_BUFFERED. Returning MEMCACHED_BUFFERED 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).
+\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:
-memcached_return_t (*memcached_trigger_key)(memcached_st *ptr, char *key, size_t key_length, memcached_result_st *result);
+.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
.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: typedef memcached_return_t (*memcached_trigger_delete_key)(memcached_st *ptr, char *key, size_t key_length);
+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
-memcached_callback_get() return the function or structure that was provided.
-Upon error, nothing is set, null is returned, and the memcached_return_t
-argument is set to MEMCACHED_FAILURE.
+\fBmemcached_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
-memcached_callback_set() returns MEMCACHED_SUCCESS upon successful setting,
-otherwise MEMCACHED_FAILURE on error.
+\fBmemcached_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:
-.TH "MEMCACHED_CAS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_CAS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_cas \- Working with data on the server in an atomic fashion
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_cas() 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 memcached_result_cas() 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
-information on how to do this.
+\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
+\fBmemcached_set()\fP for information on how to do this.
.sp
-memcached_cas_by_key() 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.
+\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
+to map objects to particular servers.
.sp
-memcached_cas() is testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+\fBmemcached_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 memcached_strerror() 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 SEE ALSO
.sp
-memcached(1) libmemached(3) memcached_strerror(3) memcached_set(3) memcached_append(3) memcached_add(3) memcached_prepend(3) memcached_replace(3)
+\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
-.TH "MEMCACHED_CAS_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_CAS_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_cas_by_key \- Storing and Replacing Data
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_cas() 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 memcached_result_cas() 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
-information on how to do this.
+\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
+\fBmemcached_set()\fP for information on how to do this.
.sp
-memcached_cas_by_key() 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.
+\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
+to map objects to particular servers.
.sp
-memcached_cas() is testsed with the \fBMEMCACHED_BEHAVIOR_USE_UDP\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+\fBmemcached_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 memcached_strerror() 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 SEE ALSO
.sp
-memcached(1) libmemached(3) memcached_strerror(3) memcached_set(3) memcached_append(3) memcached_add(3) memcached_prepend(3) memcached_replace(3)
+\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
-.TH "MEMCACHED_CLONE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_CLONE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_clone \- libmemcached Documentation
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcachd_st
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_free (memcached_st *ptr);
+.B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_st *memcached_clone (memcached_st *destination, memcached_st *source);
+.B void memcached_free(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_servers_reset(memcached_st);
+.B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP)
+.UNINDENT
+.INDENT 0.0
+.TP
+.B void memcached_servers_reset(memcached_st)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_create() is used to create a \fBmemcached_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 memcached_create() or
+\fI\%memcached_create()\fP is used to create a \fBmemcached_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
a NULL. If a NULL passed in then a structure is allocated for you.
.sp
-Please note, when you write new application use memcached_create_with_options() over memcached_create().
+Please note, when you write new application use
+\fBmemcached_create_with_options()\fP over
+\fI\%memcached_create()\fP.
.sp
-memcached_clone() is similar to memcached_create(3) 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 to clone, it is the same as a call to memcached_create().
-If the destination argument is NULL a \fBmemcached_st\fP will be allocated for you.
+\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
+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
+for you.
.sp
-memcached_servers_reset() allows you to zero out the list of servers that
-the memcached_st has.
+\fI\%memcached_servers_reset()\fP allows you to zero out the list of
+servers that the \fBmemcached_st\fP has.
.sp
-To clean up memory associated with a \fBmemcached_st\fP structure you should pass
-it to memcached_free() when you are finished using it. memcached_free() is
-the only way to make sure all memory is deallocated when you finish using
-the structure.
+To clean up memory associated with a \fBmemcached_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
-memcached_create() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.sp
-memcached_clone() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_CREATE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_CREATE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_create \- libmemcached Documentation
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcachd_st
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_free (memcached_st *ptr);
+.B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_st *memcached_clone (memcached_st *destination, memcached_st *source);
+.B void memcached_free(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_servers_reset(memcached_st);
+.B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP)
+.UNINDENT
+.INDENT 0.0
+.TP
+.B void memcached_servers_reset(memcached_st)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_create() is used to create a \fBmemcached_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 memcached_create() or
+\fI\%memcached_create()\fP is used to create a \fBmemcached_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
a NULL. If a NULL passed in then a structure is allocated for you.
.sp
-Please note, when you write new application use memcached_create_with_options() over memcached_create().
+Please note, when you write new application use
+\fBmemcached_create_with_options()\fP over
+\fI\%memcached_create()\fP.
.sp
-memcached_clone() is similar to memcached_create(3) 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 to clone, it is the same as a call to memcached_create().
-If the destination argument is NULL a \fBmemcached_st\fP will be allocated for you.
+\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
+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
+for you.
.sp
-memcached_servers_reset() allows you to zero out the list of servers that
-the memcached_st has.
+\fI\%memcached_servers_reset()\fP allows you to zero out the list of
+servers that the \fBmemcached_st\fP has.
.sp
-To clean up memory associated with a \fBmemcached_st\fP structure you should pass
-it to memcached_free() when you are finished using it. memcached_free() is
-the only way to make sure all memory is deallocated when you finish using
-the structure.
+To clean up memory associated with a \fBmemcached_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
-memcached_create() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.sp
-memcached_clone() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_DECREMENT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_DECREMENT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_decrement \- Incrementing and Decrementing Values
.
-.TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_decrement_with_initial \- Incrementing and Decrementing Values
.
-.TH "MEMCACHED_DELETE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_DELETE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_delete \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_delete() is used to delete a particular key.
-memcached_delete_by_key() works the same, but it takes a master key to
-find the given value.
+\fBmemcached_delete()\fP is used to delete a particular key.
+\fBmemcached_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
.sp
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 \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.
-.TH "MEMCACHED_DELETE_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_DELETE_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_delete_by_key \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_delete() is used to delete a particular key.
-memcached_delete_by_key() works the same, but it takes a master key to
-find the given value.
+\fBmemcached_delete()\fP is used to delete a particular key.
+\fBmemcached_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
.sp
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 \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.
-.TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_destroy_sasl_auth_data \- libmemcached Documentation
.
Please note that SASL requires the memcached binary protocol, and you have
to specify the callbacks before you connect to the server.
.sp
-memcached_set_sasl_auth_data() is a helper function defining
+\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
-memcached_destroy_sasl_auth_data before calling memcached_free to avoid
-a memory leak. You should NOT call memcached_destroy_sasl_auth_data if you
-specify your own callback function with memcached_set_sasl_callbacks().
+\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 sasl_client_init
-before enabling it in libmemcached, and you have to shut down libsasl by
-calling sasl_done() when you are done using SASL from libmemcached.
+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
-memcached_get_sasl_callbacks() returns the callbacks currently used
-by this memcached handle.
-memcached_get_sasl_set_auth_data() returns MEMCACHED_SUCCESS upon success.
+\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.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_DUMP" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_DUMP" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_dump \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_dump() 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
+\fBmemcached_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.
.sp
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 \fBmemcached_strerror()\fP to translate this value to a printable
+string.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_FETCH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_FETCH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_fetch \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B char * memcached_get (memcached_st *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B char * memcached_get_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
+.sp
+Deprecated since version 0.50: Use \fBmemcached_fetch_result()\fP instead.
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
+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.
.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
+Values returned by \fI\%memcached_fetch()\fP must be freed by the caller.
.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() 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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() 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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
-.sp
-\fBmemcached_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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
+\fBMEMCACHED_KEY_TOO_BIG\fP is set to error whenever :c:\fBmemcached_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
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fImemcached_fetch_result(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_FETCH_EXECUTE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_FETCH_EXECUTE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_fetch_execute \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_FETCH_RESULT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_FETCH_RESULT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_fetch_result \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_FLUSH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_FLUSH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_flush \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-:c:func::\fImemcached_flush()\fP is used to wipe clean the contents of memcached(1) 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
added.
.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 \fBmemcached_strerror()\fP to translate this value to a printable string.
.SH HOME
-.TH "MEMCACHED_FLUSH_BUFFERS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_FLUSH_BUFFERS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_flush_buffers \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_flush_buffers() is used in conjunction with
-MEMCACHED_BEHAVIOR_BUFFER_REQUESTS (see memcached_behavior(3)) to flush
-all buffers by sending the buffered commands to the server for processing.
+\fBmemcached_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 memcached_strerror() 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:
-.TH "MEMCACHED_FREE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_FREE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_free \- libmemcached Documentation
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcachd_st
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_free (memcached_st *ptr);
+.B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_st *memcached_clone (memcached_st *destination, memcached_st *source);
+.B void memcached_free(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_servers_reset(memcached_st);
+.B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP)
+.UNINDENT
+.INDENT 0.0
+.TP
+.B void memcached_servers_reset(memcached_st)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_create() is used to create a \fBmemcached_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 memcached_create() or
+\fI\%memcached_create()\fP is used to create a \fBmemcached_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
a NULL. If a NULL passed in then a structure is allocated for you.
.sp
-Please note, when you write new application use memcached_create_with_options() over memcached_create().
+Please note, when you write new application use
+\fBmemcached_create_with_options()\fP over
+\fI\%memcached_create()\fP.
.sp
-memcached_clone() is similar to memcached_create(3) 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 to clone, it is the same as a call to memcached_create().
-If the destination argument is NULL a \fBmemcached_st\fP will be allocated for you.
+\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
+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
+for you.
.sp
-memcached_servers_reset() allows you to zero out the list of servers that
-the memcached_st has.
+\fI\%memcached_servers_reset()\fP allows you to zero out the list of
+servers that the \fBmemcached_st\fP has.
.sp
-To clean up memory associated with a \fBmemcached_st\fP structure you should pass
-it to memcached_free() when you are finished using it. memcached_free() is
-the only way to make sure all memory is deallocated when you finish using
-the structure.
+To clean up memory associated with a \fBmemcached_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
-memcached_create() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.sp
-memcached_clone() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_GENERATE_HASH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_GENERATE_HASH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_generate_hash \- Generating hash values directly
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-memcached_generate_hash_value() allows you to hash a key using one of
+\fBmemcached_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
-memcached_behavior_set().
+\fBmemcached_behavior_set()\fP.
.sp
-memcached_generate_hash() takes a memcached_st struture and produces
-the hash value that would have been generated based on the defaults
-of the memcached_st structure.
+\fBmemcached_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.
.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.
-.TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_generate_hash_value \- Generating hash values directly
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-memcached_generate_hash_value() allows you to hash a key using one of
+\fBmemcached_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
-memcached_behavior_set().
+\fBmemcached_behavior_set()\fP.
.sp
-memcached_generate_hash() takes a memcached_st struture and produces
-the hash value that would have been generated based on the defaults
-of the memcached_st structure.
+\fBmemcached_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.
.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.
-.TH "MEMCACHED_GET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_GET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_get \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_GET_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_GET_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_get_by_key \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_get_memory_allocators \- libmemcached Documentation
.
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
-memcached_set_memory_allocators() 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.
+\fBmemcached_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
-memcached_get_memory_allocators() is used to get the currently used memory
-allocators by a mamcached handle.
+\fBmemcached_get_memory_allocators()\fP is used to get the currently used
+memory allocators by a mamcached handle.
.sp
-memcached_get_memory_allocators_context() returns the void * that was
-passed in during the call to memcached_set_memory_allocators().
+\fBmemcached_get_memory_allocators_context()\fP returns the void * that
+was passed in during the call to \fBmemcached_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
own space for memory.
.SH RETURN
.sp
-memcached_set_memory_allocators() return MEMCACHED_SUCCESS upon success,
-and MEMCACHED_FAILURE if you don\(aqt pass a complete set of function pointers.
+\fBmemcached_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:
-.TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_get_sasl_callbacks \- libmemcached Documentation
.
Please note that SASL requires the memcached binary protocol, and you have
to specify the callbacks before you connect to the server.
.sp
-memcached_set_sasl_auth_data() is a helper function defining
+\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
-memcached_destroy_sasl_auth_data before calling memcached_free to avoid
-a memory leak. You should NOT call memcached_destroy_sasl_auth_data if you
-specify your own callback function with memcached_set_sasl_callbacks().
+\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 sasl_client_init
-before enabling it in libmemcached, and you have to shut down libsasl by
-calling sasl_done() when you are done using SASL from libmemcached.
+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
-memcached_get_sasl_callbacks() returns the callbacks currently used
-by this memcached handle.
-memcached_get_sasl_set_auth_data() returns MEMCACHED_SUCCESS upon success.
+\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.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_GET_USER_DATA" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_GET_USER_DATA" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_get_user_data \- libmemcached Documentation
.
libmemcached(3) allows you to store a pointer to a user specific data inside
the memcached_st structure.
.sp
-memcached_set_user_data() is used to set the user specific data in the
-memcached_st structure.
+\fBmemcached_set_user_data()\fP is used to set the user specific data in the
+\fBmemcached_st\fP structure.
.sp
-memcached_get_user_data() is used to retrieve the user specific data in
-the memcached_st structure.
+\fBmemcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure.
.SH RETURN
.sp
-memcached_set_user_data() returns the previous value of the user specific
-data.
+\fBmemcached_set_user_data()\fP returns the previous value of the user specific data.
.sp
-memcached_get_user_data() returns the current value uf the user specific
-data.
+\fBmemcached_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
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_INCREMENT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_INCREMENT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_increment \- Incrementing and Decrementing Values
.
-.TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_increment_with_initial \- Incrementing and Decrementing Values
.
-.TH "MEMCACHED_LIB_VERSION" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_LIB_VERSION" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_lib_version \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_lib_version() is used to return a simple version string representing
-the libmemcached version (client library version, not server version)
+\fI\%memcached_lib_version()\fP is used to return a simple version string representing the libmemcached version (client library version, not server version)
.sp
-memcached_version() 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.
+\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
-A string with the version of libmemcached driver is returned from
-memcached_lib_version()
+\fI\%memcached_lib_version()\fP returns a string with the version of the libmemcached driver.
.sp
-A value of type \fBmemcached_return_t\fP is returned from memcached_version()
-On success that value will be \fBMEMCACHED_SUCCESS\fP. If called with the
-\fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, the value \fBMEMCACHED_NOT_SUPPORTED\fPwill be returned. Use memcached_strerror() to translate this value to
+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
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_memory_allocators \- libmemcached Documentation
.
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
-memcached_set_memory_allocators() 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.
+\fBmemcached_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
-memcached_get_memory_allocators() is used to get the currently used memory
-allocators by a mamcached handle.
+\fBmemcached_get_memory_allocators()\fP is used to get the currently used
+memory allocators by a mamcached handle.
.sp
-memcached_get_memory_allocators_context() returns the void * that was
-passed in during the call to memcached_set_memory_allocators().
+\fBmemcached_get_memory_allocators_context()\fP returns the void * that
+was passed in during the call to \fBmemcached_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
own space for memory.
.SH RETURN
.sp
-memcached_set_memory_allocators() return MEMCACHED_SUCCESS upon success,
-and MEMCACHED_FAILURE if you don\(aqt pass a complete set of function pointers.
+\fBmemcached_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:
-.TH "MEMCACHED_MGET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_MGET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_mget \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_MGET_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_MGET_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_mget_by_key \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_MGET_EXECUTE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_MGET_EXECUTE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_mget_execute \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_mget_execute_by_key \- Retrieving data from the server
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_result_st * memcached_fetch_result (memcached_st *ptr, memcached_result_st *result, memcached_return_t *error);
+.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 *ptr, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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 *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys);
+.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 char * memcached_fetch (memcached_st *ptr, char *key, size_t *key_length, size_t *value_length, uint32_t *flags, memcached_return_t *error);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_fetch_execute (memcached_st *ptr, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_mget_execute (memcached_st *ptr, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
-.UNINDENT
-.INDENT 0.0
-.TP
-.B memcached_return_t memcached_mget_execute_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char * const *keys, const size_t *key_length, size_t number_of_keys, memcached_execute_fn *callback, void *context, uint32_t number_of_callbacks);
+.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)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_get() 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
+\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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t pointer to hold any error. The object will be returned
-upon success and NULL will be returned on failure. Any object returned by
-memcached_get() must be released by the caller application.
-.sp
-memcached_mget() 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. memcached_fetch() is then used to retrieve any keys
-found. No error is given on keys that are not found. You must call either
-memcached_fetch() or memcached_fetch_result() after a successful call to
-memcached_mget(). You should continue to call these functions until they
-return NULL (aka no more values). If you need to quit in the middle of a
-memcached_get() call, execute a memcached_quit(). After you do this, you can
-issue new queries against the server.
-.sp
-memcached_fetch() is used to fetch an individual value from the server.
-memcached_mget() must always be called before using this method. You
-must pass in a key and its length to fetch the object. You must supply
+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 uint32_t pointer to contain whatever flags you stored with the value,
-a size_t pointer which will be filled with size of of the object, and a
-memcached_return_t 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. Values
-returned by memcached_fetch() must be freed by the caller. memcached_fetch()
-will be DEPRECATED in the near future, memcached_fetch_result() should be
-used instead.
-.sp
-memcached_fetch_result() is used to return a memcached_result_st(3) structure
-from a memcached server. The result object is forward compatible with changes
-to the server. For more information please refer to the memcached_result_st(3)
-help. This function will dynamically allocate a result structure for you
-if you do not pass one to the function.
-.sp
-memcached_fetch_execute() is a callback function for result sets. Instead
-of returning the results to you for processing, it passes each of the
+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.
+.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 memcached_st 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
-memcached_mget_execute() and memcached_mget_execute_by_key() is
-similar to memcached_mget(), 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 memcached_mget() you may encounter a
-deadlock in the OS kernel (it will fail to write data to the socket because
-the input buffer is full). memcached_mget_execute() 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
-memcached_get_by_key() and memcached_mget_by_key() behave in a similar nature
-as memcached_get() and memcached_mget(). 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\fPhas 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.
+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 returned must be freed by the calling application.
-memcached_get() and memcached_fetch() will return NULL on error. You must
-look at the value of error to determine what the actual error was.
+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
-\fBmemcached_fetch_execute()\fP return \fBMEMCACHED_SUCCESS\fP if
+\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
-\fBmemcached_fetch()\fP and \fBmemcached_fetch_result()\fP set error
+\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.
-.sp
-MEMCACHED_KEY_TOO_BIG is set to error whenever memcached_fetch() was used
-and the key was set larger then MEMCACHED_MAX_KEY, which was the largest
-key allowed for the original memcached ascii server.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_POOL" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool_behavior_get \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool_behavior_set \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_POOL_CREATE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL_CREATE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool_create \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_POOL_DESTROY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL_DESTROY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool_destroy \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_POOL_POP" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL_POP" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool_pop \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_POOL_PUSH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL_PUSH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool_push \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_POOL_ST" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_POOL_ST" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_pool_st \- libmemcached Documentation
.
#include <libmemcached/memcached_pool.h>
.INDENT 0.0
.TP
-.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.B memcached_pool_st
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.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 memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.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 instead.
.INDENT 0.0
.TP
-.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.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
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_return_t memcached_pool_behavior_set(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
+.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(memcached_pool_st\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
+.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
-memcached_pool() 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\fPobjects. Please see \fIlibmemcached_configuration\fP for details on the format of the configuration string.
-.sp
-DEPRECATED memcached_pool_create() 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\fPobjects. The mmc argument should be an
-initialised \fBmemcached_st\fPstructure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it is
-released by memcached_pool_destroy). The \fBinitial\fP argument specifies
-the initial size of the connection pool, and the \fBmax\fPargument
-specifies the maximum size the connection pool should grow to. Please note
-that the library will allocate a fixed size buffer scaled to the max size of
-the connection pool, so you should not pass MAXINT or some other large
-number here.
-.sp
-memcached_pool_destroy() is used to destroy the connection pool
-created with memcached_pool_create() and release all allocated
+\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 memcached_pool_create(), and returns the ownership
-of the pointer to the caller when created with memcached_pool_create,
-otherwise NULL is returned..
+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
-memcached_pool_pop() is used to grab a connection structure from the
+\fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
connection pool. The block argument specifies if the function should
block and wait for a connection structure to be available if we try
to exceed the maximum size.
.sp
-memcached_pool_push() is used to return a connection structure back to the pool.
+\fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
.sp
-memcached_pool_behavior_set() and memcached_pool_behagior_get() is
-used to get/set behavior flags on all connections in the pool.
+\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.
.SH RETURN
.sp
-memcached_pool_create() returns a pointer to the newly created
-memcached_pool_st structure. On an allocation failure, it returns
-NULL.
-.sp
-memcached_pool_destroy() returns the pointer (and ownership) to the
-memcached_st structure used to create the pool. If connections are in
-use it returns NULL.
+\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
-memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+\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
-memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.sp
-memcached_pool_behavior_get() and memcached_pool_behavior_get()
-returns MEMCACHED_SUCCESS upon success.
+\fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
.SH HOME
.sp
To find out more information please check:
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_PREPEND" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_PREPEND" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_prepend \- Appending to or Prepending to data on the server
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_prepend() and memcached_append are used to
+\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(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 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.
+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
-memcached_prepend() places a segment of data before the last piece of data
-stored. Currently expiration and key are not used in the server.
+\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
-memcached_append() 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.
+\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
-memcached_prepend_by_key() and memcached_append_by_key_by_key(,
-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.
+\fBmemcached_prepend_by_key()\fP and
+\fBmemcached_append_by_key_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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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
+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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() 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 SEE ALSO
.sp
-memcached(1) libmemached(3) memcached_strerror(3) memcached_set(3) memcached_add(3) memcached_cas(3) memcached_replace(3)
+\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
-.TH "MEMCACHED_PREPEND_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_PREPEND_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_prepend_by_key \- Appending to or Prepending to data on the server
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_prepend() and memcached_append are used to
+\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(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 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.
+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
-memcached_prepend() places a segment of data before the last piece of data
-stored. Currently expiration and key are not used in the server.
+\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
-memcached_append() 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.
+\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
-memcached_prepend_by_key() and memcached_append_by_key_by_key(,
-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.
+\fBmemcached_prepend_by_key()\fP and
+\fBmemcached_append_by_key_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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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
+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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() 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 SEE ALSO
.sp
-memcached(1) libmemached(3) memcached_strerror(3) memcached_set(3) memcached_add(3) memcached_cas(3) memcached_replace(3)
+\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
-.TH "MEMCACHED_QUIT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_QUIT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_quit \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_quit() will disconnect you from all currently connected servers.
-It will also reset the state of the connection (ie, any memcached_fetch() you
-are in the middle of will be terminated). This function is called
-automatically when you call memcached_free() on the \fBmemcached_st\fP structure.
+\fBmemcached_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 memcached_fetch().
+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 memcached_strerror() 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:
-.TH "MEMCACHED_REPLACE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_REPLACE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_replace \- Storing and Replacing Data
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_set(), memcached_add(), and memcached_replace() 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
-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.
+\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
+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
-memcached_set() 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
+\fBmemcached_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
-memcached_replace() replaces an object on the server. If the object is not
-found on the server an error occurs.
+\fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs.
.sp
-memcached_add() adds an object to the server. If the object is found on the
-server an error occurs, otherwise the value is stored.
+\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.
.sp
-memcached_cas() 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 memcached_result_cas() on a memcached_result_st(3) structure. At the point
+\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
information on how to do this.
.sp
-memcached_set_by_key(), memcached_add_by_key(), and memcached_replace_by_key()
-methods all behave in a similar method as the non key
-methods. The difference is that they use their group_key parameter to map
+\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
+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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() to translate this value to a printable string.
+Use \fBmemcached_strerror()\fP to translate this value to a printable string.
.sp
-For memcached_replace() and memcached_add(), \fBMEMCACHED_NOTSTORED\fP is a
-legitmate error in the case of a collision.
+For \fBmemcached_replace()\fP and \fBmemcached_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
-memcached(1) libmemached(3) memcached_strerror(3) memcached_prepend(3) memcached_cas(3) memcached_append(3)
+\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
-.TH "MEMCACHED_REPLACE_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_REPLACE_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_replace_by_key \- Storing and Replacing Data
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_set(), memcached_add(), and memcached_replace() 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
-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.
+\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
+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
-memcached_set() 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
+\fBmemcached_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
-memcached_replace() replaces an object on the server. If the object is not
-found on the server an error occurs.
+\fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs.
.sp
-memcached_add() adds an object to the server. If the object is found on the
-server an error occurs, otherwise the value is stored.
+\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.
.sp
-memcached_cas() 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 memcached_result_cas() on a memcached_result_st(3) structure. At the point
+\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
information on how to do this.
.sp
-memcached_set_by_key(), memcached_add_by_key(), and memcached_replace_by_key()
-methods all behave in a similar method as the non key
-methods. The difference is that they use their group_key parameter to map
+\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
+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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() to translate this value to a printable string.
+Use \fBmemcached_strerror()\fP to translate this value to a printable string.
.sp
-For memcached_replace() and memcached_add(), \fBMEMCACHED_NOTSTORED\fP is a
-legitmate error in the case of a collision.
+For \fBmemcached_replace()\fP and \fBmemcached_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
-memcached(1) libmemached(3) memcached_strerror(3) memcached_prepend(3) memcached_cas(3) memcached_append(3)
+\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
-.TH "MEMCACHED_RESULT_CAS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_CAS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_cas \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_CREATE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_CREATE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_create \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_FLAGS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_FLAGS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_flags \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_FREE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_FREE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_free \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_key_length \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_KEY_VALUE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_KEY_VALUE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_key_value \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_LENGTH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_LENGTH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_length \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_ST" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_ST" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_st \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_RESULT_VALUE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_RESULT_VALUE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_result_value \- Working with result sets
.
Compile and link with \-lmemcachedutil \-lmemcached
.SH DESCRIPTION
.sp
-libmemcached(3) can optionally return a memcached_result_st 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.
+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 memcached_result_st has been encapsulated, you should not
-write code to directly access members of the structure.
+The structure of \fI\%memcached_result_st\fP has been encapsulated, you should
+not write code to directly access members of the structure.
.sp
-memcached_result_create() will either allocate memory for a
-memcached_result_st or will initialize a structure passed to it.
+\fBmemcached_result_create()\fP will either allocate memory for a
+\fI\%memcached_result_st\fP or will initialize a structure passed to it.
.sp
-memcached_result_free() will deallocate any memory attached to the
+\fBmemcached_result_free()\fP will deallocate any memory attached to the
structure. If the structure was also allocated, it will deallocate it.
.sp
-memcached_result_key_value() returns the key value associated with the
+\fBmemcached_result_key_value()\fP returns the key value associated with the
current result object.
.sp
-memcached_result_key_length() returns the key length associated with the
-current result object.
+\fBmemcached_result_key_length()\fP returns the key length associated with
+the current result object.
.sp
-memcached_result_value() returns the result value associated with the
+\fBmemcached_result_value()\fP returns the result value associated with the
current result object.
.sp
-memcached_result_length() returns the result length associated with the
-current result object.
+\fBmemcached_result_length()\fP returns the result length associated with
+the current result object.
.sp
-memcached_result_flags() returns the flags associated with the
+\fI\%memcached_result_flags()\fP returns the flags associated with the
current result object.
.sp
-memcached_result_cas() returns the cas associated with the
+\fBmemcached_result_cas()\fP returns the cas associated with the
current result object. This value will only be available if the server
tests it.
.sp
-memcached_result_set_value() takes a byte array and a size and sets
+\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
-void memcached_result_set_flags() takes a result structure and stores
+\fBvoid memcached_result_set_flags()\fP takes a result structure and stores
a new value for the flags field.
.sp
-void memcached_result_set_expiration(A) takes a result structure and stores
-a new value for the expiration field (this is only used by read through
-triggers).
+\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).
.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
.SH RETURN
.sp
Varies, see particular functions. All structures must have
-memcached_result_free() called on them for cleanup purposes. Failure to
-do this will result in leaked memory.
+\fBmemcached_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:
-.TH "MEMCACHED_SASL" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SASL" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_sasl \- libmemcached Documentation
.
Please note that SASL requires the memcached binary protocol, and you have
to specify the callbacks before you connect to the server.
.sp
-memcached_set_sasl_auth_data() is a helper function defining
+\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
-memcached_destroy_sasl_auth_data before calling memcached_free to avoid
-a memory leak. You should NOT call memcached_destroy_sasl_auth_data if you
-specify your own callback function with memcached_set_sasl_callbacks().
+\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 sasl_client_init
-before enabling it in libmemcached, and you have to shut down libsasl by
-calling sasl_done() when you are done using SASL from libmemcached.
+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
-memcached_get_sasl_callbacks() returns the callbacks currently used
-by this memcached handle.
-memcached_get_sasl_set_auth_data() returns MEMCACHED_SUCCESS upon success.
+\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.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_sasl_set_auth_data \- libmemcached Documentation
.
Please note that SASL requires the memcached binary protocol, and you have
to specify the callbacks before you connect to the server.
.sp
-memcached_set_sasl_auth_data() is a helper function defining
+\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
-memcached_destroy_sasl_auth_data before calling memcached_free to avoid
-a memory leak. You should NOT call memcached_destroy_sasl_auth_data if you
-specify your own callback function with memcached_set_sasl_callbacks().
+\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 sasl_client_init
-before enabling it in libmemcached, and you have to shut down libsasl by
-calling sasl_done() when you are done using SASL from libmemcached.
+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
-memcached_get_sasl_callbacks() returns the callbacks currently used
-by this memcached handle.
-memcached_get_sasl_set_auth_data() returns MEMCACHED_SUCCESS upon success.
+\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.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_SERVER_ADD" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_ADD" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_add \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_add_unix_socket \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVER_COUNT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_COUNT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_count \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVER_CURSOR" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_CURSOR" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_cursor \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVER_LIST" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_list \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVER_LIST_APPEND" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST_APPEND" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_list_append \- libmemcached Documentation
.
.SH DESCRIPTION
.sp
libmemcached(3) operates on a list of hosts which are stored in
-memcached_server_st structures. You should not modify these structures
+\fBmemcached_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 memcached_server_st that you passed to it.
+\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it.
.sp
\fI\%memcached_server_list_append()\fP adds a server to the end of a
-memcached_server_st array. On error null will be returned and the
-memcached_return_t 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
+\fBmemcached_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
.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.
+\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 these 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.
+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.
.SH RETURN
.sp
Varies, see particular functions.
-.TH "MEMCACHED_SERVER_LIST_COUNT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST_COUNT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_list_count \- libmemcached Documentation
.
.SH DESCRIPTION
.sp
libmemcached(3) operates on a list of hosts which are stored in
-memcached_server_st structures. You should not modify these structures
+\fBmemcached_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 memcached_server_st that you passed to it.
+\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it.
.sp
\fI\%memcached_server_list_append()\fP adds a server to the end of a
-memcached_server_st array. On error null will be returned and the
-memcached_return_t 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
+\fBmemcached_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
.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.
+\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 these 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.
+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.
.SH RETURN
.sp
Varies, see particular functions.
-.TH "MEMCACHED_SERVER_LIST_FREE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST_FREE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_list_free \- libmemcached Documentation
.
.SH DESCRIPTION
.sp
libmemcached(3) operates on a list of hosts which are stored in
-memcached_server_st structures. You should not modify these structures
+\fBmemcached_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 memcached_server_st that you passed to it.
+\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it.
.sp
\fI\%memcached_server_list_append()\fP adds a server to the end of a
-memcached_server_st array. On error null will be returned and the
-memcached_return_t 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
+\fBmemcached_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
.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.
+\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 these 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.
+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.
.SH RETURN
.sp
Varies, see particular functions.
-.TH "MEMCACHED_SERVER_PUSH" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_PUSH" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_push \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVER_ST" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVER_ST" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_server_st \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVERS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVERS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_servers \- libmemcached Documentation
.
\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
-\fBmemcached_server_st()\fP.
+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.
+\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
.sp
-\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.
+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.
+\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 then
-\fBMEMCACHED_MAX_HOST_LENGTH\fP.
+\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.
+\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
+\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.
.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
+\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 memcached_st in its current state.
+\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.
-.TH "MEMCACHED_SERVERS_PARSE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVERS_PARSE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_servers_parse \- libmemcached Documentation
.
.SH DESCRIPTION
.sp
libmemcached(3) operates on a list of hosts which are stored in
-memcached_server_st structures. You should not modify these structures
+\fBmemcached_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 memcached_server_st that you passed to it.
+\fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fBmemcached_server_st\fP that you passed to it.
.sp
\fI\%memcached_server_list_append()\fP adds a server to the end of a
-memcached_server_st array. On error null will be returned and the
-memcached_return_t 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
+\fBmemcached_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
.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.
+\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 these 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.
+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.
.SH RETURN
.sp
Varies, see particular functions.
-.TH "MEMCACHED_SERVERS_RESET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SERVERS_RESET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_servers_reset \- libmemcached Documentation
.
#include <libmemcached/memcached.h>
.INDENT 0.0
.TP
-.B memcached_st *memcached_create (memcached_st *ptr);
+.B memcachd_st
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_free (memcached_st *ptr);
+.B memcached_st* memcached_create(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B memcached_st *memcached_clone (memcached_st *destination, memcached_st *source);
+.B void memcached_free(memcached_st\fI\ *ptr\fP)
.UNINDENT
.INDENT 0.0
.TP
-.B void memcached_servers_reset(memcached_st);
+.B memcached_st* memcached_clone(memcached_st\fI\ *destination\fP, memcached_st\fI\ *source\fP)
+.UNINDENT
+.INDENT 0.0
+.TP
+.B void memcached_servers_reset(memcached_st)
.UNINDENT
.sp
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_create() is used to create a \fBmemcached_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 memcached_create() or
+\fI\%memcached_create()\fP is used to create a \fBmemcached_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
a NULL. If a NULL passed in then a structure is allocated for you.
.sp
-Please note, when you write new application use memcached_create_with_options() over memcached_create().
+Please note, when you write new application use
+\fBmemcached_create_with_options()\fP over
+\fI\%memcached_create()\fP.
.sp
-memcached_clone() is similar to memcached_create(3) 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 to clone, it is the same as a call to memcached_create().
-If the destination argument is NULL a \fBmemcached_st\fP will be allocated for you.
+\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
+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
+for you.
.sp
-memcached_servers_reset() allows you to zero out the list of servers that
-the memcached_st has.
+\fI\%memcached_servers_reset()\fP allows you to zero out the list of
+servers that the \fBmemcached_st\fP has.
.sp
-To clean up memory associated with a \fBmemcached_st\fP structure you should pass
-it to memcached_free() when you are finished using it. memcached_free() is
-the only way to make sure all memory is deallocated when you finish using
-the structure.
+To clean up memory associated with a \fBmemcached_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
-memcached_create() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_create()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.sp
-memcached_clone() returns a pointer to the memcached_st that was created
-(or initialized). On an allocation failure, it returns NULL.
+\fI\%memcached_clone()\fP returns a pointer to the \fBmemcached_st\fP
+that was created (or initialized). On an allocation failure, it returns NULL.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_SET" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SET" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_set \- Storing and Replacing Data
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_set(), memcached_add(), and memcached_replace() 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
-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.
+\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
+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
-memcached_set() 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
+\fBmemcached_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
-memcached_replace() replaces an object on the server. If the object is not
-found on the server an error occurs.
+\fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs.
.sp
-memcached_add() adds an object to the server. If the object is found on the
-server an error occurs, otherwise the value is stored.
+\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.
.sp
-memcached_cas() 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 memcached_result_cas() on a memcached_result_st(3) structure. At the point
+\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
information on how to do this.
.sp
-memcached_set_by_key(), memcached_add_by_key(), and memcached_replace_by_key()
-methods all behave in a similar method as the non key
-methods. The difference is that they use their group_key parameter to map
+\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
+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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() to translate this value to a printable string.
+Use \fBmemcached_strerror()\fP to translate this value to a printable string.
.sp
-For memcached_replace() and memcached_add(), \fBMEMCACHED_NOTSTORED\fP is a
-legitmate error in the case of a collision.
+For \fBmemcached_replace()\fP and \fBmemcached_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
-memcached(1) libmemached(3) memcached_strerror(3) memcached_prepend(3) memcached_cas(3) memcached_append(3)
+\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
-.TH "MEMCACHED_SET_BY_KEY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SET_BY_KEY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_set_by_key \- Storing and Replacing Data
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_set(), memcached_add(), and memcached_replace() 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
-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.
+\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
+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
-memcached_set() 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
+\fBmemcached_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
-memcached_replace() replaces an object on the server. If the object is not
-found on the server an error occurs.
+\fBmemcached_replace()\fP replaces an object on the server. If the object is not found on the server an error occurs.
.sp
-memcached_add() adds an object to the server. If the object is found on the
-server an error occurs, otherwise the value is stored.
+\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.
.sp
-memcached_cas() 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 memcached_result_cas() on a memcached_result_st(3) structure. At the point
+\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
information on how to do this.
.sp
-memcached_set_by_key(), memcached_add_by_key(), and memcached_replace_by_key()
-methods all behave in a similar method as the non key
-methods. The difference is that they use their group_key parameter to map
+\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
+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, memcached_set() with non\-blocking IO is
-the fastest way to store data on the server.
+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\fPbehavior 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, \(ga\(ga MEMCACHED_BEHAVIOR_BINARY_PROTOCOL\(ga\(ga,
-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\fPwill be returned.
+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 memcached_strerror() to translate this value to a printable string.
+Use \fBmemcached_strerror()\fP to translate this value to a printable string.
.sp
-For memcached_replace() and memcached_add(), \fBMEMCACHED_NOTSTORED\fP is a
-legitmate error in the case of a collision.
+For \fBmemcached_replace()\fP and \fBmemcached_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
-memcached(1) libmemached(3) memcached_strerror(3) memcached_prepend(3) memcached_cas(3) memcached_append(3)
+\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
-.TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_set_memory_allocators \- libmemcached Documentation
.
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
-memcached_set_memory_allocators() 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.
+\fBmemcached_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
-memcached_get_memory_allocators() is used to get the currently used memory
-allocators by a mamcached handle.
+\fBmemcached_get_memory_allocators()\fP is used to get the currently used
+memory allocators by a mamcached handle.
.sp
-memcached_get_memory_allocators_context() returns the void * that was
-passed in during the call to memcached_set_memory_allocators().
+\fBmemcached_get_memory_allocators_context()\fP returns the void * that
+was passed in during the call to \fBmemcached_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
own space for memory.
.SH RETURN
.sp
-memcached_set_memory_allocators() return MEMCACHED_SUCCESS upon success,
-and MEMCACHED_FAILURE if you don\(aqt pass a complete set of function pointers.
+\fBmemcached_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:
-.TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_set_memory_allocators_context \- libmemcached Documentation
.
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
-memcached_set_memory_allocators() 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.
+\fBmemcached_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
-memcached_get_memory_allocators() is used to get the currently used memory
-allocators by a mamcached handle.
+\fBmemcached_get_memory_allocators()\fP is used to get the currently used
+memory allocators by a mamcached handle.
.sp
-memcached_get_memory_allocators_context() returns the void * that was
-passed in during the call to memcached_set_memory_allocators().
+\fBmemcached_get_memory_allocators_context()\fP returns the void * that
+was passed in during the call to \fBmemcached_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
own space for memory.
.SH RETURN
.sp
-memcached_set_memory_allocators() return MEMCACHED_SUCCESS upon success,
-and MEMCACHED_FAILURE if you don\(aqt pass a complete set of function pointers.
+\fBmemcached_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:
-.TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_set_sasl_callbacks \- libmemcached Documentation
.
Please note that SASL requires the memcached binary protocol, and you have
to specify the callbacks before you connect to the server.
.sp
-memcached_set_sasl_auth_data() is a helper function defining
+\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
-memcached_destroy_sasl_auth_data before calling memcached_free to avoid
-a memory leak. You should NOT call memcached_destroy_sasl_auth_data if you
-specify your own callback function with memcached_set_sasl_callbacks().
+\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 sasl_client_init
-before enabling it in libmemcached, and you have to shut down libsasl by
-calling sasl_done() when you are done using SASL from libmemcached.
+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
-memcached_get_sasl_callbacks() returns the callbacks currently used
-by this memcached handle.
-memcached_get_sasl_set_auth_data() returns MEMCACHED_SUCCESS upon success.
+\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.
.SH HOME
.sp
To find out more information please check:
-.TH "MEMCACHED_SET_USER_DATA" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_SET_USER_DATA" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_set_user_data \- libmemcached Documentation
.
libmemcached(3) allows you to store a pointer to a user specific data inside
the memcached_st structure.
.sp
-memcached_set_user_data() is used to set the user specific data in the
-memcached_st structure.
+\fBmemcached_set_user_data()\fP is used to set the user specific data in the
+\fBmemcached_st\fP structure.
.sp
-memcached_get_user_data() is used to retrieve the user specific data in
-the memcached_st structure.
+\fBmemcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure.
.SH RETURN
.sp
-memcached_set_user_data() returns the previous value of the user specific
-data.
+\fBmemcached_set_user_data()\fP returns the previous value of the user specific data.
.sp
-memcached_get_user_data() returns the current value uf the user specific
-data.
+\fBmemcached_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
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_STAT" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_STAT" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_stat \- libmemcached Documentation
.
.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.
-<memcached_stat_get_value() has been provided to query the structure.
+\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.
.sp
-memcached_stat_execute() 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
+\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
the memcached server.
.sp
-memcached_stat() 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\fPbehavior set, a NULL value is returned and the error parameter is set to
-\fBMEMCACHED_NOT_SUPPORTED\fP.
+\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.
.sp
-memcached_stat_servername() 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 obtain information on.
+\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
+obtain information on.
.sp
-memcached_stat_get_value() returns the value of a particular state key. You
-specify the key you wish to obtain. The key must be null terminated.
+\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.
.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.
+\fBmemcached_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.
Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_STAT_EXECUTE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_STAT_EXECUTE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_stat_execute \- libmemcached Documentation
.
.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.
-<memcached_stat_get_value() has been provided to query the structure.
+\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.
.sp
-memcached_stat_execute() 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
+\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
the memcached server.
.sp
-memcached_stat() 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\fPbehavior set, a NULL value is returned and the error parameter is set to
-\fBMEMCACHED_NOT_SUPPORTED\fP.
+\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.
.sp
-memcached_stat_servername() 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 obtain information on.
+\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
+obtain information on.
.sp
-memcached_stat_get_value() returns the value of a particular state key. You
-specify the key you wish to obtain. The key must be null terminated.
+\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.
.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.
+\fBmemcached_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.
Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_STAT_GET_KEYS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_STAT_GET_KEYS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_stat_get_keys \- libmemcached Documentation
.
.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.
-<memcached_stat_get_value() has been provided to query the structure.
+\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.
.sp
-memcached_stat_execute() 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
+\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
the memcached server.
.sp
-memcached_stat() 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\fPbehavior set, a NULL value is returned and the error parameter is set to
-\fBMEMCACHED_NOT_SUPPORTED\fP.
+\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.
.sp
-memcached_stat_servername() 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 obtain information on.
+\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
+obtain information on.
.sp
-memcached_stat_get_value() returns the value of a particular state key. You
-specify the key you wish to obtain. The key must be null terminated.
+\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.
.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.
+\fBmemcached_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.
Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_STAT_GET_VALUE" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_STAT_GET_VALUE" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_stat_get_value \- libmemcached Documentation
.
.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.
-<memcached_stat_get_value() has been provided to query the structure.
+\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.
.sp
-memcached_stat_execute() 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
+\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
the memcached server.
.sp
-memcached_stat() 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\fPbehavior set, a NULL value is returned and the error parameter is set to
-\fBMEMCACHED_NOT_SUPPORTED\fP.
+\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.
.sp
-memcached_stat_servername() 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 obtain information on.
+\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
+obtain information on.
.sp
-memcached_stat_get_value() returns the value of a particular state key. You
-specify the key you wish to obtain. The key must be null terminated.
+\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.
.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.
+\fBmemcached_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.
Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_STAT_SERVERNAME" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_STAT_SERVERNAME" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_stat_servername \- libmemcached Documentation
.
.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.
-<memcached_stat_get_value() has been provided to query the structure.
+\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.
.sp
-memcached_stat_execute() 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
+\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
the memcached server.
.sp
-memcached_stat() 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\fPbehavior set, a NULL value is returned and the error parameter is set to
-\fBMEMCACHED_NOT_SUPPORTED\fP.
+\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.
.sp
-memcached_stat_servername() 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 obtain information on.
+\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
+obtain information on.
.sp
-memcached_stat_get_value() returns the value of a particular state key. You
-specify the key you wish to obtain. The key must be null terminated.
+\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.
.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.
+\fBmemcached_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.
Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_STATS" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_STATS" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_stats \- libmemcached Documentation
.
.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.
-<memcached_stat_get_value() has been provided to query the structure.
+\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.
.sp
-memcached_stat_execute() 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
+\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
the memcached server.
.sp
-memcached_stat() 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\fPbehavior set, a NULL value is returned and the error parameter is set to
-\fBMEMCACHED_NOT_SUPPORTED\fP.
+\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.
.sp
-memcached_stat_servername() 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 obtain information on.
+\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
+obtain information on.
.sp
-memcached_stat_get_value() returns the value of a particular state key. You
-specify the key you wish to obtain. The key must be null terminated.
+\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.
.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.
+\fBmemcached_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.
Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_STRERROR" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_STRERROR" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_strerror \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_strerror() takes a \fBmemcached_return_t\fP value and returns a string
-describing the error.
+\fBmemcached_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.
+\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
-memcached_strerror() returns a string describing a \fBmemcached_return_t\fP value.
+\fBmemcached_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
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_USER_DATA" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_USER_DATA" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_user_data \- libmemcached Documentation
.
libmemcached(3) allows you to store a pointer to a user specific data inside
the memcached_st structure.
.sp
-memcached_set_user_data() is used to set the user specific data in the
-memcached_st structure.
+\fBmemcached_set_user_data()\fP is used to set the user specific data in the
+\fBmemcached_st\fP structure.
.sp
-memcached_get_user_data() is used to retrieve the user specific data in
-the memcached_st structure.
+\fBmemcached_get_user_data()\fP is used to retrieve the user specific data in the \fBmemcached_st\fP structure.
.SH RETURN
.sp
-memcached_set_user_data() returns the previous value of the user specific
-data.
+\fBmemcached_set_user_data()\fP returns the previous value of the user specific data.
.sp
-memcached_get_user_data() returns the current value uf the user specific
-data.
+\fBmemcached_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
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_VERBOSITY" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_VERBOSITY" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_verbosity \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_verbosity() modifies the "verbosity" of the
-memcached(1) servers referenced in the \fBmemcached_st\fP parameter.
+\fBmemcached_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
+A value of type \fBmemcached_return_t\fP is returned.
+.sp
On success that value will be \fBMEMCACHED_SUCCESS\fP.
-Use memcached_strerror() to translate this value to a printable string.
+.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
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCACHED_VERSION" "3" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCACHED_VERSION" "3" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcached_version \- libmemcached Documentation
.
Compile and link with \-lmemcached
.SH DESCRIPTION
.sp
-memcached_lib_version() is used to return a simple version string representing
-the libmemcached version (client library version, not server version)
+\fI\%memcached_lib_version()\fP is used to return a simple version string representing the libmemcached version (client library version, not server version)
.sp
-memcached_version() 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.
+\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
-A string with the version of libmemcached driver is returned from
-memcached_lib_version()
+\fI\%memcached_lib_version()\fP returns a string with the version of the libmemcached driver.
.sp
-A value of type \fBmemcached_return_t\fP is returned from memcached_version()
-On success that value will be \fBMEMCACHED_SUCCESS\fP. If called with the
-\fBMEMCACHED_BEHAVIOR_USE_UDP\fP behavior set, the value \fBMEMCACHED_NOT_SUPPORTED\fPwill be returned. Use memcached_strerror() to translate this value to
+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
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3) memcached_strerror(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCAPABLE" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCAPABLE" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcapable \- libmemcached Documentation
.
..
.\" Man page generated from reStructeredText.
.
-.sp
-Check the server for compatibility and capabilities
.SH SYNOPSIS
.sp
-\fBmemcapable\fP
+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
Set the timeout from an IO operation to/from the server to \fIn\fP seconds.
-.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 HOME
.sp
To find out more information please check:
-.TH "MEMCAT" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCAT" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcat \- libmemcached Documentation
.
..
.\" Man page generated from reStructeredText.
.
-.sp
-Copy a set of keys to stdout
.SH SYNOPSIS
.sp
-\fBmemcat\fP
-.INDENT 0.0
-.TP
-.B \-\-help
-.UNINDENT
+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 \fB\-\-servers\fP option or via the
-environment variable \fBMEMCACHED_SERVERS\fP.
+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 \fB\-\-help\fP option.
+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:
Mark Atwood <\fI\%mark@fallenpegasus.com\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMCP" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMCP" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memcp \- libmemcached Documentation
.
.sp
Copies files to a collection of memcached servers
.SH SYNOPSIS
-.INDENT 0.0
-.TP
-.B program
-.
-\fImemcp\fP
-.UNINDENT
-.INDENT 0.0
-.TP
-.B \-\-help
-.UNINDENT
+.sp
+memcp [options] [file] [server]
.SH DESCRIPTION
.sp
\fBmemcp\fP copies one or more files into memcached(1) servers.
.sp
The key names will be the names of the files,
without any directory path.
+.SH OPTIONS
.sp
-You can specify servers via the \fB\-\-servers\fP option or via the
-environment variable \fBMEMCACHED_SERVERS\fP. If you do not specify either these, the final value in the command line list is the name of a
-server(s).
+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 \fB\-\-help\fP option.
+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:
Mark Atwood, <\fI\%mark@fallenpegasus.com\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMDUMP" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMDUMP" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memdump \- libmemcached Documentation
.
.sp
Dump a list of keys from a server.
.SH SYNOPSIS
-.INDENT 0.0
-.TP
-.B program
-.
-\fImemdump\fP
-.UNINDENT
-.INDENT 0.0
-.TP
-.B \-\-help
-.UNINDENT
+.sp
+memdump [options]
.SH DESCRIPTION
.sp
-\fBmemdump\fP dumps a list of "keys" from all servers that
+\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 the \fB\-\-help\fP option.
+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
-.TH "MEMERROR" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMERROR" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memerror \- libmemcached Documentation
.
.sp
Translates a memcached error code into a string
.SH SYNOPSIS
-.INDENT 0.0
-.TP
-.B program
-.
-\fImemerror\fP
-.UNINDENT
-.INDENT 0.0
-.TP
-.B \-\-help
-.UNINDENT
+.sp
+memerror [options] [error code]
.SH DESCRIPTION
.sp
-\fBmemerror\fP translate an error code from libmemcached(3) into a human
+\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 the \fB\-\-help\fP option.
+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
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMFLUSH" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMFLUSH" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memflush \- libmemcached Documentation
.
.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 program
-.
-\fImemflush\fP
+.B \-\-servers
.UNINDENT
+.sp
+or via the environment variable:
.INDENT 0.0
.TP
-.B \-\-help
+.B \(gaMEMCACHED_SERVERS\(ga
.UNINDENT
-.SH DESCRIPTION
-.sp
-\fBmemflush\fP resets the contents of memcached(1) servers.
-This means that all data in the specified servers will be deleted.
-.sp
-You can specify servers via the \fB\-\-servers\fP option or via the
-environment variable \fBMEMCACHED_SERVERS\fP.
.sp
-For a full list of operations run the tool with the \fB\-\-help\fP option.
+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:
Mark Atwood <\fI\%mark@fallenpegasus.com\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMRM" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMRM" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memrm \- libmemcached Documentation
.
.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 program
-.
-\fImemrm\fP
+.B \-\-servers
.UNINDENT
+.sp
+or via the environment variable:
.INDENT 0.0
.TP
-.B \-\-help
+.B \(gaMEMCACHED_SERVERS\(ga
.UNINDENT
-.SH DESCRIPTION
-.sp
-\fBmemrm\fP removes items, specified by key, from memcached(1) servers.
.sp
-You can specify servers via the \fB\-\-servers\fP option or via the
-environment variable \fBMEMCACHED_SERVERS\fP.
-.sp
-For a full list of operations run the tool with the \fB\-\-help\fP option.
+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:
Mark Atwood, <\fI\%mark@fallenpegasus.com\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
-.TH "MEMSLAP" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMSLAP" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memslap \- libmemcached Documentation
.
.\" 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 program
-.
-\fImemslap\fP
+.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 DESCRIPTION
+.SH HOME
.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.
+To find out more information please check:
+\(aq\fI\%http://libmemcached.org/\fP <\fI\%http://libmemcached.org/\fP>\(aq_
+.SH AUTHOR
.sp
-You can specify servers via the \fB\-\-servers\fP option or via the environment variable \fBMEMCACHED_SERVERS\fP.
+Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP
-.TH "MEMSTAT" "1" "June 17, 2011" "0.49" "libmemcached"
+.TH "MEMSTAT" "1" "July 21, 2011" "0.51" "libmemcached"
.SH NAME
memstat \- libmemcached Documentation
.
.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 program
-.
-\fImemstat\fP
+.B \-\-servers
.UNINDENT
+.sp
+or via the environment variable:
.INDENT 0.0
.TP
-.B \-\-help
+.B \(aqMEMCACHED_SERVERS, \-\-args\(aq
.UNINDENT
-.SH DESCRIPTION
-.sp
-\fBmemstat\fP dumps the state of memcached(1) servers.
-It displays all data to stdout.
.sp
-You can specify servers via the \fB\-\-servers\fP option or via the
-environment variable \fBMEMCACHED_SERVERS\fP. \fB\-\-args\fP can be used
-to specify the "argument" sent to the stats command (ie slab, size, items,
-etc..).
+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 the \fB\-\-help\fP option.
+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:
\fI\%http://libmemcached.org/\fP
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT