Merge in laptops efforts for extending pool/documenting more of it.
authorbrian@tangent.org <>
Mon, 11 Apr 2011 05:22:20 +0000 (22:22 -0700)
committerbrian@tangent.org <>
Mon, 11 Apr 2011 05:22:20 +0000 (22:22 -0700)
154 files changed:
docs/conf.py
docs/include.am
docs/index.rst
docs/libmemcached_examples.rst
docs/man/hashkit_clone.3
docs/man/hashkit_crc32.3
docs/man/hashkit_create.3
docs/man/hashkit_fnv1_32.3
docs/man/hashkit_fnv1_64.3
docs/man/hashkit_fnv1a_32.3
docs/man/hashkit_fnv1a_64.3
docs/man/hashkit_free.3
docs/man/hashkit_functions.3
docs/man/hashkit_hsieh.3
docs/man/hashkit_is_allocated.3
docs/man/hashkit_jenkins.3
docs/man/hashkit_md5.3
docs/man/hashkit_murmur.3
docs/man/hashkit_value.3
docs/man/libhashkit.3
docs/man/libmemcached.3
docs/man/libmemcached_check_configuration.3
docs/man/libmemcached_configuration.3
docs/man/libmemcached_examples.3
docs/man/libmemcachedutil.3
docs/man/memaslap.1
docs/man/memcached_add.3
docs/man/memcached_add_by_key.3
docs/man/memcached_analyze.3
docs/man/memcached_append.3
docs/man/memcached_append_by_key.3
docs/man/memcached_auto.3
docs/man/memcached_behavior.3
docs/man/memcached_behavior_get.3
docs/man/memcached_behavior_set.3
docs/man/memcached_callback.3
docs/man/memcached_callback_get.3
docs/man/memcached_callback_set.3
docs/man/memcached_cas.3
docs/man/memcached_cas_by_key.3
docs/man/memcached_clone.3
docs/man/memcached_create.3
docs/man/memcached_create_with_options.3
docs/man/memcached_decrement.3
docs/man/memcached_decrement_with_initial.3
docs/man/memcached_delete.3
docs/man/memcached_delete_by_key.3
docs/man/memcached_destroy_sasl_auth_data.3
docs/man/memcached_dump.3
docs/man/memcached_fetch.3
docs/man/memcached_fetch_execute.3
docs/man/memcached_fetch_result.3
docs/man/memcached_flush.3
docs/man/memcached_flush_buffers.3
docs/man/memcached_free.3
docs/man/memcached_generate_hash.3
docs/man/memcached_generate_hash_value.3
docs/man/memcached_get.3
docs/man/memcached_get_by_key.3
docs/man/memcached_get_memory_allocators.3
docs/man/memcached_get_sasl_callbacks.3
docs/man/memcached_get_user_data.3
docs/man/memcached_increment.3
docs/man/memcached_increment_with_initial.3
docs/man/memcached_lib_version.3
docs/man/memcached_memory_allocators.3
docs/man/memcached_mget.3
docs/man/memcached_mget_by_key.3
docs/man/memcached_mget_execute.3
docs/man/memcached_mget_execute_by_key.3
docs/man/memcached_pool.3
docs/man/memcached_pool_behavior_get.3
docs/man/memcached_pool_behavior_set.3
docs/man/memcached_pool_create.3
docs/man/memcached_pool_destroy.3
docs/man/memcached_pool_pop.3
docs/man/memcached_pool_push.3
docs/man/memcached_pool_st.3 [new file with mode: 0644]
docs/man/memcached_prepend.3
docs/man/memcached_prepend_by_key.3
docs/man/memcached_quit.3
docs/man/memcached_replace.3
docs/man/memcached_replace_by_key.3
docs/man/memcached_result_cas.3
docs/man/memcached_result_create.3
docs/man/memcached_result_flags.3
docs/man/memcached_result_free.3
docs/man/memcached_result_key_length.3
docs/man/memcached_result_key_value.3
docs/man/memcached_result_length.3
docs/man/memcached_result_st.3
docs/man/memcached_result_value.3
docs/man/memcached_sasl.3
docs/man/memcached_sasl_set_auth_data.3
docs/man/memcached_server_add.3
docs/man/memcached_server_add_unix_socket.3
docs/man/memcached_server_count.3
docs/man/memcached_server_cursor.3
docs/man/memcached_server_list.3
docs/man/memcached_server_list_append.3
docs/man/memcached_server_list_count.3
docs/man/memcached_server_list_free.3
docs/man/memcached_server_push.3
docs/man/memcached_server_st.3
docs/man/memcached_servers.3
docs/man/memcached_servers_parse.3
docs/man/memcached_servers_reset.3
docs/man/memcached_set.3
docs/man/memcached_set_by_key.3
docs/man/memcached_set_memory_allocators.3
docs/man/memcached_set_memory_allocators_context.3
docs/man/memcached_set_sasl_callbacks.3
docs/man/memcached_set_user_data.3
docs/man/memcached_stat.3
docs/man/memcached_stat_execute.3
docs/man/memcached_stat_get_keys.3
docs/man/memcached_stat_get_value.3
docs/man/memcached_stat_servername.3
docs/man/memcached_stats.3
docs/man/memcached_strerror.3
docs/man/memcached_user_data.3
docs/man/memcached_verbosity.3
docs/man/memcached_version.3
docs/man/memcapable.1
docs/man/memcat.1
docs/man/memcp.1
docs/man/memdump.1
docs/man/memerror.1
docs/man/memflush.1
docs/man/memrm.1
docs/man/memslap.1
docs/man/memstat.1
docs/memaslap.rst
docs/memcached_pool.rst
docs/memcapable.rst
docs/memcat.rst
docs/memcp.rst
docs/memdump.rst
docs/memerror.rst
docs/memflush.rst
docs/memrm.rst
docs/memslap.rst
docs/memstat.rst
libmemcached/connect.c
libmemcached/memcached.c
libmemcached/memcached.h
libmemcached/util/pool.c
libmemcached/util/pool.h
tests/include.am
tests/mem_functions.c
tests/parser.cc
tests/parser.h
tests/pool.cc [new file with mode: 0644]
tests/pool.h [new file with mode: 0644]

index d4cd9f9c256052aeca29f8301dc300b11b25aa64..47025e4b318cc68de654f8fe1ecffa2838bb2815 100644 (file)
@@ -270,6 +270,7 @@ man_pages = [
   ('memcached_memory_allocators', 'memcached_set_memory_allocators', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_memory_allocators', 'memcached_set_memory_allocators_context', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_memory_allocators', 'memcached_set_memory_allocators', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_memory_allocators', 'memcached_set_memory_allocators_context', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool', u'libmemcached Documentation', [u'Brian Aker'], 3),
+  ('memcached_pool', 'memcached_pool_st', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool_behavior_get', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool_behavior_set', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool_create', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool_behavior_get', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool_behavior_set', u'libmemcached Documentation', [u'Brian Aker'], 3),
   ('memcached_pool', 'memcached_pool_create', u'libmemcached Documentation', [u'Brian Aker'], 3),
index 28cea239accb3ca2511aa6ce63bb9a3c3eec0167..3d6871c8cec9c04294e0bd4936f519e63825d71a 100644 (file)
@@ -130,6 +130,7 @@ man_MANS+= \
           docs/man/memcached_pool_destroy.3 \
           docs/man/memcached_pool_pop.3 \
           docs/man/memcached_pool_push.3 \
           docs/man/memcached_pool_destroy.3 \
           docs/man/memcached_pool_pop.3 \
           docs/man/memcached_pool_push.3 \
+          docs/man/memcached_pool_st.3 \
           docs/man/memcached_prepend.3 \
           docs/man/memcached_prepend_by_key.3 \
           docs/man/memcached_quit.3 \
           docs/man/memcached_prepend.3 \
           docs/man/memcached_prepend_by_key.3 \
           docs/man/memcached_quit.3 \
index 00a437d80c51afeccb542a85e6a6fab238f4cb66..f41089c8c23d13847685e1b20ebbf3671ffe7e29 100644 (file)
@@ -6,36 +6,68 @@ Welcome to the libmemcached documentation
 Libmemcached
 ------------
 
 Libmemcached
 ------------
 
+
+######
+Basics
+######
+
+
 .. toctree::
    :maxdepth: 1
 
    libmemcached
 .. toctree::
    :maxdepth: 1
 
    libmemcached
+   memcached_create
    libmemcached_examples
    libmemcached_configuration
    libmemcached_examples
    libmemcached_configuration
-   memcached_analyze
+
+
+#################
+Working with data
+#################
+
+.. toctree::
+   :maxdepth: 1
+
    memcached_auto
    memcached_auto
-   memcached_behavior
-   memcached_callback
-   memcached_create
    memcached_delete
    memcached_delete
-   memcached_dump
    memcached_flush_buffers
    memcached_flush
    memcached_flush_buffers
    memcached_flush
-   memcached_generate_hash_value
    memcached_get
    memcached_get
+   memcached_result_st
+   memcached_set
+
+
+###############
+Advanced Topics
+###############
+
+.. toctree::
+   :maxdepth: 1
+
+   memcached_behavior
+   memcached_callback
+   memcached_dump
+   memcached_generate_hash_value
    memcached_memory_allocators
    memcached_quit
    memcached_memory_allocators
    memcached_quit
-   memcached_result_st
    memcached_sasl
    memcached_sasl
-   memcached_servers
    memcached_server_st
    memcached_server_st
-   memcached_set
-   memcached_stats
+   memcached_servers
    memcached_strerror
    memcached_user_data
    memcached_verbosity
    memcached_version
 
    memcached_strerror
    memcached_user_data
    memcached_verbosity
    memcached_version
 
+#################################
+Deriving statistics from a server
+#################################
+
+.. toctree::
+   :maxdepth: 1
+
+   memcached_analyze
+   memcached_stats
+
 ----------------
 Libmemcachedutil
 ----------------
 ----------------
 Libmemcachedutil
 ----------------
@@ -76,6 +108,7 @@ Libhashkit
    hashkit_functions
    hashkit_value
 
    hashkit_functions
    hashkit_value
 
+==================
 Indices and tables
 ==================
 
 Indices and tables
 ==================
 
index 922ee143c0f54c28bf1ce712ad65c95c4ef131a1..5c3acf6a9ac2725ac2a028dc0394d9664403b48e 100644 (file)
@@ -13,9 +13,9 @@ For full examples, test cases are found in tests/\*.c in the main
 distribution. These are always up to date, and are used for each test run of
 the library.
 
 distribution. These are always up to date, and are used for each test run of
 the library.
 
-------------------------------
-Creating and Freeing structure
-------------------------------
+-----------------------------------------------
+Creating and Freeing the memcached_st structure
+-----------------------------------------------
 
 
 .. code-block:: c
 
 
 .. code-block:: c
@@ -51,6 +51,43 @@ Connecting to servers
 In the above code you create a \ ``memcached_st``\  object with three server by making use of :manpage:`memcached_create_with_options(3)`.
 
 
 In the above code you create a \ ``memcached_st``\  object with three server by making use of :manpage:`memcached_create_with_options(3)`.
 
 
+--------------------------
+Creating a pool of servers
+--------------------------
+
+
+
+.. code-block:: c
+
+  const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com"; 
+  
+  memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));
+
+  memcached_return_t rc;
+
+  memcached_st *memc= memcached_pool_pop(pool, false, &rc);
+
+  .... do work
+
+  /*
+    Release the memc_ptr that was pulled from the pool
+  */
+  memcached_pool_push(pool, memc);
+
+  /*
+    Destroy the pool.
+  */
+  memcached_pool_destroy(pool);
+
+
+
+In the above code you create a \ ``memcached_pool_st``\  object with three
+server by making use of :manpage:`memcached_pool(3)`.
+
+When memcached_pool_destroy() all memory will be released that is associated
+with the pool.
+
+
 ----------------------------
 Adding a value to the server
 ----------------------------
 ----------------------------
 Adding a value to the server
 ----------------------------
index cd2bf026e71222f6be1a68a3e992c80efa6597f9..6673c7756eb075b6b939cb0badfee1f4b3eed503 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_CLONE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_CLONE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_clone \- libhashkit Documentation
 .
 .SH NAME
 hashkit_clone \- libhashkit Documentation
 .
index cd6ee8c1f3b2476985a5ff6c2846dc867f4359b6..8b0feb5b3197e22b18f6718e7c3ed2a660779372 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_CRC32" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_CRC32" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_crc32 \- libhashkit Documentation
 .
 .SH NAME
 hashkit_crc32 \- libhashkit Documentation
 .
index b3f78c63d74c2d13b80842517191e76d6240005e..ec8da32011a914e656d6719a4dc23b9918a47b42 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_CREATE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_CREATE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_create \- libhashkit Documentation
 .
 .SH NAME
 hashkit_create \- libhashkit Documentation
 .
index 6ca49830275af6b2316208efaeba23cea47d2223..44480c6b899351c1b590c62801f3406840268671 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_FNV1_32" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_FNV1_32" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_fnv1_32 \- libhashkit Documentation
 .
 .SH NAME
 hashkit_fnv1_32 \- libhashkit Documentation
 .
index 3112bea0cc0af797ca6df90b48414f374942094c..8a57e5e5c14bdd01d42ce17c7770c66a118a2c7b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_FNV1_64" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_FNV1_64" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_fnv1_64 \- libhashkit Documentation
 .
 .SH NAME
 hashkit_fnv1_64 \- libhashkit Documentation
 .
index 0e1fb593c18bdfb4af9dd00a61214ce00429991e..d336649794e531c222fbf89d6850cbfebf18dd66 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_FNV1A_32" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_FNV1A_32" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_fnv1a_32 \- libhashkit Documentation
 .
 .SH NAME
 hashkit_fnv1a_32 \- libhashkit Documentation
 .
index 3cbc785c9dd7aa4407d025b14106e1d274bb8c72..c06e5264db8caa9f0304a0d0a304d45d757b3593 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_FNV1A_64" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_FNV1A_64" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_fnv1a_64 \- libhashkit Documentation
 .
 .SH NAME
 hashkit_fnv1a_64 \- libhashkit Documentation
 .
index 0c072cf29a2de2739cee8a8a7e27b7236262bf87..81fe571bf21f97c9a5fc96ce22d87fb76e67903d 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_FREE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_FREE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_free \- libhashkit Documentation
 .
 .SH NAME
 hashkit_free \- libhashkit Documentation
 .
index c0386cbc544b9b36930a808aecfe4739aeb049ee..02223420506e9f11ad460a2c5c1b7fdec2dfedd3 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_FUNCTIONS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_FUNCTIONS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_functions \- libhashkit Documentation
 .
 .SH NAME
 hashkit_functions \- libhashkit Documentation
 .
index 9815ff0e325c85322ddf1593564863067bd013f1..30d62544647bf2ef875a4f81562696b781c0edea 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_HSIEH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_HSIEH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_hsieh \- libhashkit Documentation
 .
 .SH NAME
 hashkit_hsieh \- libhashkit Documentation
 .
index 9b556f8dc5bdeed8e2e79f24eca34e744babd88e..3c40e2df4c542b97927d1de71c9e32ed813be3b0 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_IS_ALLOCATED" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_IS_ALLOCATED" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_is_allocated \- libhashkit Documentation
 .
 .SH NAME
 hashkit_is_allocated \- libhashkit Documentation
 .
index 7096ff659e4f743f4517c4e2a65dc90bc4323581..04743a176fdcf547cbc3c03a15b28d8923154369 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_JENKINS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_JENKINS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_jenkins \- libhashkit Documentation
 .
 .SH NAME
 hashkit_jenkins \- libhashkit Documentation
 .
index 21b278ae41b1d808eecee66fd6e2e407c694f7d0..ac40f8b5c909bf9d92c0a95b2cd547686dae838b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_MD5" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_MD5" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_md5 \- libhashkit Documentation
 .
 .SH NAME
 hashkit_md5 \- libhashkit Documentation
 .
index 966707b5dd4dede4e30a7e1f8582d86462a73d6e..1ceba0e0aec57766cf173e292eaf5273d7713392 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_MURMUR" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_MURMUR" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_murmur \- libhashkit Documentation
 .
 .SH NAME
 hashkit_murmur \- libhashkit Documentation
 .
index 8893b0bc0b4ad06e1fc234c3f312a7bfce2397df..f4039f96b72fa61f1180d3167be098b3bef6cc33 100644 (file)
@@ -1,4 +1,4 @@
-.TH "HASHKIT_VALUE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "HASHKIT_VALUE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 hashkit_value \- libhashkit Documentation
 .
 .SH NAME
 hashkit_value \- libhashkit Documentation
 .
index cb735062b83957a2ca80b2e76d7017568cc52c11..1c86053be68b073cead61a0e0d15a542b944b0e3 100644 (file)
@@ -1,4 +1,4 @@
-.TH "LIBHASHKIT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "LIBHASHKIT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 libhashkit \- libhashkit Documentation
 .
 .SH NAME
 libhashkit \- libhashkit Documentation
 .
index d70d225c6dc34ecd663956d6c249b0d648b0dc11..7b11fcf78ed3c7e482e1dfc37de97e22e84dbe9c 100644 (file)
@@ -1,4 +1,4 @@
-.TH "LIBMEMCACHED" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "LIBMEMCACHED" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 libmemcached \- Introducing the C Client Library for memcached
 .
 .SH NAME
 libmemcached \- Introducing the C Client Library for memcached
 .
index c5a81dfbac6e450902c53d1a4e0eb0b9e78aab6c..7c2228115959ec796930a5c84f4f6b309e6a9c96 100644 (file)
@@ -1,4 +1,4 @@
-.TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 libmemcached_check_configuration \- libmemcached Documentation
 .
 .SH NAME
 libmemcached_check_configuration \- libmemcached Documentation
 .
index dac97b939e4167fb4af39e943e2a822ac16e47e5..3fa476ea657de67ab005dbfd3b06e04e9fa80e74 100644 (file)
@@ -1,4 +1,4 @@
-.TH "LIBMEMCACHED_CONFIGURATION" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "LIBMEMCACHED_CONFIGURATION" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 libmemcached_configuration \- libmemcached Documentation
 .
 .SH NAME
 libmemcached_configuration \- libmemcached Documentation
 .
index d274724c48176e4b1b9a94a5ee1983e3bb254c95..c650f58b3cb62ddbe097fed1664e8806efb015de 100644 (file)
@@ -1,4 +1,4 @@
-.TH "LIBMEMCACHED_EXAMPLES" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "LIBMEMCACHED_EXAMPLES" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 libmemcached_examples \- libmemcached Documentation
 .
 .SH NAME
 libmemcached_examples \- libmemcached Documentation
 .
@@ -37,7 +37,7 @@ Examples for libmemcached
 For full examples, test cases are found in tests/*.c in the main
 distribution. These are always up to date, and are used for each test run of
 the library.
 For full examples, test cases are found in tests/*.c in the main
 distribution. These are always up to date, and are used for each test run of
 the library.
-.SH CREATING AND FREEING STRUCTURE
+.SH CREATING AND FREEING THE MEMCACHED_ST STRUCTURE
 .sp
 .nf
 .ft C
 .sp
 .nf
 .ft C
@@ -66,6 +66,37 @@ memcached_free(memc);
 .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.
 .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.
+.SH CREATING A POOL OF SERVERS
+.sp
+.nf
+.ft C
+const char *config_string= "\-\-SERVER=host10.example.com \-\-SERVER=host11.example.com \-\-SERVER=host10.example.com";
+
+memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));
+
+memcached_return_t rc;
+
+memcached_st *memc= memcached_pool_pop(pool, false, &rc);
+
+\&.... do work
+
+/*
+  Release the memc_ptr that was pulled from the pool
+*/
+memcached_pool_push(pool, memc);
+
+/*
+  Destroy the pool.
+*/
+memcached_pool_destroy(pool);
+.ft P
+.fi
+.sp
+In the above code you create a \fBmemcached_pool_st\fP object with three
+server by making use of \fImemcached_pool(3)\fP.
+.sp
+When memcached_pool_destroy() all memory will be released that is associated
+with the pool.
 .SH ADDING A VALUE TO THE SERVER
 .sp
 .nf
 .SH ADDING A VALUE TO THE SERVER
 .sp
 .nf
index ca993e1bab9454529aa4b2479f8025f7ae5ea273..4a12d0d5ebb6b497af78700fd6d8d13d9b609671 100644 (file)
@@ -1,4 +1,4 @@
-.TH "LIBMEMCACHEDUTIL" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "LIBMEMCACHEDUTIL" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 libmemcachedutil \- libmemcached Documentation
 .
 .SH NAME
 libmemcachedutil \- libmemcached Documentation
 .
index ca4926a6a04ea91c29a6116cc0999a737e0e829d..1709e40aea1440775d8d8b5a137a861f98586014 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMASLAP" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMASLAP" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memaslap \- libmemcached Documentation
 .
 .SH NAME
 memaslap \- libmemcached Documentation
 .
@@ -31,6 +31,8 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .\" Man page generated from reStructeredText.
 .
 .SH SYNOPSIS
 .\" Man page generated from reStructeredText.
 .
 .SH SYNOPSIS
+.sp
+:program:: \fImemaslap\fP
 .INDENT 0.0
 .TP
 .B \-\-help
 .INDENT 0.0
 .TP
 .B \-\-help
index 17ecbe0b4c0c0ec9cda8c20018c4ee4c92334b66..64df8e2ae4257be49af5cb568f7e4c3a088405f8 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_ADD" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_ADD" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_add \- Storing and Replacing Data
 .
 .SH NAME
 memcached_add \- Storing and Replacing Data
 .
index b13317173307cb35f5dc3b84af4e497639e0acbe..4b3e1f0318998f9fdc9d70ac036368ae7ff4e09a 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_ADD_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_ADD_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_add_by_key \- Storing and Replacing Data
 .
 .SH NAME
 memcached_add_by_key \- Storing and Replacing Data
 .
index 68cbec465e7b8adbaf745081a7614889ea40b869..f3e66af5172939c36e70041249ae83a1c87f5669 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_ANALYZE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_ANALYZE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_analyze \- libmemcached Documentation
 .
 .SH NAME
 memcached_analyze \- libmemcached Documentation
 .
index 4da04b80d9146ad3b6dcdcac5238346f881adb6e..f804fbcbbac6b06674c2095cedb3b7ef160da47c 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_APPEND" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_APPEND" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_append \- Storing and Replacing Data
 .
 .SH NAME
 memcached_append \- Storing and Replacing Data
 .
index b51fdce87457207ef7560a3c40e9c34957af1c2a..04f631771cab468b7da091f5cb157f6eb9789cad 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_APPEND_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_APPEND_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_append_by_key \- Storing and Replacing Data
 .
 .SH NAME
 memcached_append_by_key \- Storing and Replacing Data
 .
index 39530a28e32897b06ea847095f0856a056901bc6..1fb4019111864e346955097fb91c5d8ee94e7e7d 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_AUTO" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_AUTO" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_auto \- Incrementing and Decrementing Values
 .
 .SH NAME
 memcached_auto \- Incrementing and Decrementing Values
 .
index 826497fe5f293f34156b7e6a3a538af36768c9e6..41c14ced7e61eb33638e332062b5aa620a11b6c7 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_BEHAVIOR" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_BEHAVIOR" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_behavior \- libmemcached Documentation
 .
 .SH NAME
 memcached_behavior \- libmemcached Documentation
 .
index 9b39d56d443761bd0dbdc96dad5a1d88c2e6e12c..4f04c4e388880a9f54ef6f4c78e65ce915f3fd36 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_BEHAVIOR_GET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_BEHAVIOR_GET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_behavior_get \- libmemcached Documentation
 .
 .SH NAME
 memcached_behavior_get \- libmemcached Documentation
 .
index 57574fa1f8ff5f18710d90f6aa3268d5b8ce537c..cfb7ae68725ba34745554a8d2bdf18eb808369d3 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_BEHAVIOR_SET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_BEHAVIOR_SET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_behavior_set \- libmemcached Documentation
 .
 .SH NAME
 memcached_behavior_set \- libmemcached Documentation
 .
index 6b3c13a5ccd8adde83574d1a2bb91b79016a85aa..003ea6b42f570628abcfe712c885b3189820ccb8 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CALLBACK" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CALLBACK" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_callback \- libmemcached Documentation
 .
 .SH NAME
 memcached_callback \- libmemcached Documentation
 .
index df265fb920680c23737ec934476192fcd0885247..a0de8f74c3b325dc33240fa1207ccf7b72abe99e 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CALLBACK_GET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CALLBACK_GET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_callback_get \- libmemcached Documentation
 .
 .SH NAME
 memcached_callback_get \- libmemcached Documentation
 .
index fa5c0c9c55d35c0c3531d260665249f3b6d8d2c0..ca1eea70dd2b597ef315c62d816fa37698c063fb 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CALLBACK_SET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CALLBACK_SET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_callback_set \- libmemcached Documentation
 .
 .SH NAME
 memcached_callback_set \- libmemcached Documentation
 .
index 48d9ca3beb4ee68162e29365d99fb68e22eac5ab..82daae3e9eef82f62dfde05b625c347f597e5ad1 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CAS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CAS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_cas \- Storing and Replacing Data
 .
 .SH NAME
 memcached_cas \- Storing and Replacing Data
 .
index c7288165a074ff1580eaf37141fe118b9392cedb..56a8e21ca97f8d86179561241cb77b511b4474f1 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CAS_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CAS_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_cas_by_key \- Storing and Replacing Data
 .
 .SH NAME
 memcached_cas_by_key \- Storing and Replacing Data
 .
index 798e6d8c13e4f1f0a209777f3d7be59aff5cd0c6..4144540820085eb28d7c8e1c277ca7ecdaa042bc 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CLONE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CLONE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_clone \- libmemcached Documentation
 .
 .SH NAME
 memcached_clone \- libmemcached Documentation
 .
index 601175a6156f7181428e832d04db893ef5b77722..79b268592e3f089629fc98895c047e43e2574a70 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CREATE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CREATE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_create \- libmemcached Documentation
 .
 .SH NAME
 memcached_create \- libmemcached Documentation
 .
index eac57824b6033a0e7d8debdb203c12fc5dec0d8b..b3c7ecbd1e57ec2eba08f6adc9946ab695e5c21c 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_CREATE_WITH_OPTIONS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_CREATE_WITH_OPTIONS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_create_with_options \- libmemcached Documentation
 .
 .SH NAME
 memcached_create_with_options \- libmemcached Documentation
 .
index e6b8b69d46ca48e2eb9c8118c3077680d93228cf..0384c80167a471965e82304412183a844e40b1bd 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_DECREMENT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_DECREMENT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_decrement \- Incrementing and Decrementing Values
 .
 .SH NAME
 memcached_decrement \- Incrementing and Decrementing Values
 .
index 4ce2deb8b1fec5f7e68b499db4a6bb1d80f3487c..744977b1c0cfb78d7a8f4d01f1a93ad292abbe7c 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_decrement_with_initial \- Incrementing and Decrementing Values
 .
 .SH NAME
 memcached_decrement_with_initial \- Incrementing and Decrementing Values
 .
index 2e715437914dd6dd4072ac807d29b0d7ce776403..86dad7d9da1cc048eb85720b226bcc54172f5a4b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_DELETE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_DELETE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_delete \- libmemcached Documentation
 .
 .SH NAME
 memcached_delete \- libmemcached Documentation
 .
index ac8c46e84b688d3ec5b252f0e7d05d80fea7f6df..5230363d3d1ffd54fb7db7206e8a2f9e8078e83a 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_DELETE_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_DELETE_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_delete_by_key \- libmemcached Documentation
 .
 .SH NAME
 memcached_delete_by_key \- libmemcached Documentation
 .
index f7a8c32c76a826f5ccaf23f34eadf02a93487f07..cd9bdd75a2cfb2c47060abf8ebd90600068c45bf 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_destroy_sasl_auth_data \- libmemcached Documentation
 .
 .SH NAME
 memcached_destroy_sasl_auth_data \- libmemcached Documentation
 .
index 0b82f2739aa248da557ddd7a8ff27e83168feb66..a93a5c432ad4e442c24d56e82d34795f36b4857c 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_DUMP" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_DUMP" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_dump \- libmemcached Documentation
 .
 .SH NAME
 memcached_dump \- libmemcached Documentation
 .
index f0ce0087c89db9e10116e19dbe9b19dd4f0f14f9..fda2c57892c32e10d920dc2598b284cba76f2f6b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_FETCH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_FETCH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_fetch \- Retrieving data from the server
 .
 .SH NAME
 memcached_fetch \- Retrieving data from the server
 .
index 132cbb8171a11ae1aa652ed876293ed03fabc3b9..27e2e0a7d7f2a9ea5bc92009d4d7b38877c1ff98 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_FETCH_EXECUTE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_FETCH_EXECUTE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_fetch_execute \- Retrieving data from the server
 .
 .SH NAME
 memcached_fetch_execute \- Retrieving data from the server
 .
index e7cdf56d297cf77cf68d76b629e0dfae3fc71a04..7e2279c3929ab16f1b93a0730b98247f0a086d54 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_FETCH_RESULT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_FETCH_RESULT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_fetch_result \- Retrieving data from the server
 .
 .SH NAME
 memcached_fetch_result \- Retrieving data from the server
 .
index 0535097af25984ab14a64b13f72dbe48509b0497..a1904dd05d18bcea2591a970c297570ed78c20d0 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_FLUSH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_FLUSH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_flush \- libmemcached Documentation
 .
 .SH NAME
 memcached_flush \- libmemcached Documentation
 .
index 1b0446efb62f1de53ce585c7c141850b5f73ff99..29954839c155e5c62f96136095fefff248e68327 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_FLUSH_BUFFERS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_FLUSH_BUFFERS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_flush_buffers \- libmemcached Documentation
 .
 .SH NAME
 memcached_flush_buffers \- libmemcached Documentation
 .
index ddf508af0e6c7930d41fd089563f12787400bafe..5fe91691bc1a90dd14a12d0fa0bf09761bf33165 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_FREE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_FREE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_free \- libmemcached Documentation
 .
 .SH NAME
 memcached_free \- libmemcached Documentation
 .
index 3c81b38cebaa0141c69d7003ca258a5ad89d3cb4..4db0f232b47049a004b5bf7a055691ce850491ac 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_GENERATE_HASH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_GENERATE_HASH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_generate_hash \- Generating hash values directly
 .
 .SH NAME
 memcached_generate_hash \- Generating hash values directly
 .
index d047f5d0db7ee0ed2d3bd72ef4beb7fe6e06b9db..e6460d6f5e16d4b94a073b81ef96d577eefacba2 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_generate_hash_value \- Generating hash values directly
 .
 .SH NAME
 memcached_generate_hash_value \- Generating hash values directly
 .
index 88aaa6f76741a758f7b2bf838b5d07a99d4990a4..8dc91f4b3c52c508f97c02b9e5a4255bfd557d15 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_GET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_GET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_get \- Retrieving data from the server
 .
 .SH NAME
 memcached_get \- Retrieving data from the server
 .
index 147131bfb82161bbdb013ebcd8e35cc154553659..d9e18a7d3d6a5551197e41ec51b2eca9f62a63d4 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_GET_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_GET_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_get_by_key \- Retrieving data from the server
 .
 .SH NAME
 memcached_get_by_key \- Retrieving data from the server
 .
index f68a5265f5111e7096aa79bef8b844d4c11a066c..b76371bf972455089be0d6707f342617879d9667 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_get_memory_allocators \- libmemcached Documentation
 .
 .SH NAME
 memcached_get_memory_allocators \- libmemcached Documentation
 .
index fdbf6b77fa3aa2515db766b43b9f77d0ef001ba1..8fa5fcc504252b124197ec60c91c162f4fdd0351 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_get_sasl_callbacks \- libmemcached Documentation
 .
 .SH NAME
 memcached_get_sasl_callbacks \- libmemcached Documentation
 .
index 487b53367d834c1c2c886dcfa8424908d719eb5b..9a3f7218aa4313eeed1fcfb1b2ab9d9851d5f05e 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_GET_USER_DATA" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_GET_USER_DATA" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_get_user_data \- libmemcached Documentation
 .
 .SH NAME
 memcached_get_user_data \- libmemcached Documentation
 .
index e81aa2e347009487489b7a09d340d2cad7b1af53..b87a53441fdf8cab304068b01135a23d86d15f1c 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_INCREMENT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_INCREMENT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_increment \- Incrementing and Decrementing Values
 .
 .SH NAME
 memcached_increment \- Incrementing and Decrementing Values
 .
index c8a9ad48b0bb45773e439a0036a5c7cd6232fa40..c3a9781b786d7251ec4724556f8398e958116abd 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_increment_with_initial \- Incrementing and Decrementing Values
 .
 .SH NAME
 memcached_increment_with_initial \- Incrementing and Decrementing Values
 .
index ed8817d64434c8d94a65034da72ea10733c72aa5..3c4897e01882c2c9aee8776637ab9a668bfcbd6b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_LIB_VERSION" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_LIB_VERSION" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_lib_version \- libmemcached Documentation
 .
 .SH NAME
 memcached_lib_version \- libmemcached Documentation
 .
index 4ee5ede4fab6ae4629f465d86fc255ebe694d562..cae0255bd8c68cc9a20858e00decba2b9186a129 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_memory_allocators \- libmemcached Documentation
 .
 .SH NAME
 memcached_memory_allocators \- libmemcached Documentation
 .
index 8f4f7d31d3bc739c80754767a00b9f3856dd7399..4ff59a3be347de582fa195d57cb6e37c978bc544 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_MGET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_MGET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_mget \- Retrieving data from the server
 .
 .SH NAME
 memcached_mget \- Retrieving data from the server
 .
index 2457318b8ee1b6510640edc43617c3d5c23f08f1..23238a7ed85989d059bdf39dcece3196891fa554 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_MGET_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_MGET_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_mget_by_key \- Retrieving data from the server
 .
 .SH NAME
 memcached_mget_by_key \- Retrieving data from the server
 .
index 62c92bfc5394756a975546b02d95bbce74a51f80..80e9acff72baa0a170d81493bc22670ec00ad2e8 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_MGET_EXECUTE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_MGET_EXECUTE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_mget_execute \- Retrieving data from the server
 .
 .SH NAME
 memcached_mget_execute \- Retrieving data from the server
 .
index 653e206c940b2c7e3e6086d1ea1017b9f6cdcb71..fddf37e36f817a71cfbb10e49d735dfcacc74969 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_mget_execute_by_key \- Retrieving data from the server
 .
 .SH NAME
 memcached_mget_execute_by_key \- Retrieving data from the server
 .
index 350f43cdbdffeed4ac88e47a374adad69c235e57..24a698c0085c85b2a61f908384783a3108e26784 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_POOL" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_POOL" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_pool \- libmemcached Documentation
 .
 .SH NAME
 memcached_pool \- libmemcached Documentation
 .
@@ -35,7 +35,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
 .UNINDENT
 .INDENT 0.0
 .TP
 .UNINDENT
 .INDENT 0.0
 .TP
@@ -65,22 +69,28 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
-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\fP objects. The mmc argument should be an
-initialised \fBmemcached_st\fP structure, 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.
+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
 resources. It will return the pointer to the \fBmemcached_st\fP structure
 .sp
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() 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.
+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..
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
index 15f16cfbf488ed96319e8c0bdf2180cbb96c51b4..6b1aeca88ca98811fe3529a914a2485dbab2c3f0 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_pool_behavior_get \- libmemcached Documentation
 .
 .SH NAME
 memcached_pool_behavior_get \- libmemcached Documentation
 .
@@ -35,7 +35,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
 .UNINDENT
 .INDENT 0.0
 .TP
 .UNINDENT
 .INDENT 0.0
 .TP
@@ -65,22 +69,28 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
-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\fP objects. The mmc argument should be an
-initialised \fBmemcached_st\fP structure, 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.
+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
 resources. It will return the pointer to the \fBmemcached_st\fP structure
 .sp
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() 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.
+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..
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
index b4667c6c7e70bec237ee2309b9a0b28faa0fe21e..e4928ea9b0cc36e203c7900dadbbf927f172f455 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_pool_behavior_set \- libmemcached Documentation
 .
 .SH NAME
 memcached_pool_behavior_set \- libmemcached Documentation
 .
@@ -35,7 +35,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
 .UNINDENT
 .INDENT 0.0
 .TP
 .UNINDENT
 .INDENT 0.0
 .TP
@@ -65,22 +69,28 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
-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\fP objects. The mmc argument should be an
-initialised \fBmemcached_st\fP structure, 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.
+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
 resources. It will return the pointer to the \fBmemcached_st\fP structure
 .sp
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() 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.
+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..
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
index 7e3538e38a3b9329021bff8f7a14e8d3e4118cdb..a869f738f3943a6cc6baf5dcaa6ab928fa8c2a15 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_POOL_CREATE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_POOL_CREATE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_pool_create \- libmemcached Documentation
 .
 .SH NAME
 memcached_pool_create \- libmemcached Documentation
 .
@@ -35,7 +35,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
 .UNINDENT
 .INDENT 0.0
 .TP
 .UNINDENT
 .INDENT 0.0
 .TP
@@ -65,22 +69,28 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
-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\fP objects. The mmc argument should be an
-initialised \fBmemcached_st\fP structure, 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.
+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
 resources. It will return the pointer to the \fBmemcached_st\fP structure
 .sp
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() 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.
+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..
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
index c874b6f9a40a4e2668f8ce7ae9318c3acc6585ac..6fd651255458b1289bd2ff9fa1f07c80826cf953 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_POOL_DESTROY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_POOL_DESTROY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_pool_destroy \- libmemcached Documentation
 .
 .SH NAME
 memcached_pool_destroy \- libmemcached Documentation
 .
@@ -35,7 +35,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
 .UNINDENT
 .INDENT 0.0
 .TP
 .UNINDENT
 .INDENT 0.0
 .TP
@@ -65,22 +69,28 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
-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\fP objects. The mmc argument should be an
-initialised \fBmemcached_st\fP structure, 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.
+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
 resources. It will return the pointer to the \fBmemcached_st\fP structure
 .sp
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() 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.
+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..
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
index cb294d0fd7bcf97bf0d92b454ad3c35b5e60d99b..621e54ad8c9f605c7b1fbf621738df2e99b93995 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_POOL_POP" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_POOL_POP" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_pool_pop \- libmemcached Documentation
 .
 .SH NAME
 memcached_pool_pop \- libmemcached Documentation
 .
@@ -35,7 +35,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
 .UNINDENT
 .INDENT 0.0
 .TP
 .UNINDENT
 .INDENT 0.0
 .TP
@@ -65,22 +69,28 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
-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\fP objects. The mmc argument should be an
-initialised \fBmemcached_st\fP structure, 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.
+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
 resources. It will return the pointer to the \fBmemcached_st\fP structure
 .sp
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() 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.
+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..
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
index 64d70c6e4963c661b4295b544e80259b71e150dc..8131a1dc071d06140b4f404f14ef1702d409a088 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_POOL_PUSH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_POOL_PUSH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_pool_push \- libmemcached Documentation
 .
 .SH NAME
 memcached_pool_push \- libmemcached Documentation
 .
@@ -35,7 +35,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
 #include <libmemcached/memcached_pool.h>
 .INDENT 0.0
 .TP
-.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
 .UNINDENT
 .INDENT 0.0
 .TP
 .UNINDENT
 .INDENT 0.0
 .TP
@@ -65,22 +69,28 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
 Compile and link with \-lmemcachedutil \-lmemcached
 .SH DESCRIPTION
 .sp
-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\fP objects. The mmc argument should be an
-initialised \fBmemcached_st\fP structure, 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.
+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
 resources. It will return the pointer to the \fBmemcached_st\fP structure
 .sp
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() 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.
+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..
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 .sp
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
diff --git a/docs/man/memcached_pool_st.3 b/docs/man/memcached_pool_st.3
new file mode 100644 (file)
index 0000000..edd5a9f
--- /dev/null
@@ -0,0 +1,139 @@
+.TH "MEMCACHED_POOL_ST" "3" "April 10, 2011" "0.47" "libmemcached"
+.SH NAME
+memcached_pool_st \- libmemcached Documentation
+.
+.nr rst2man-indent-level 0
+.
+.de1 rstReportMargin
+\\$1 \\n[an-margin]
+level \\n[rst2man-indent-level]
+level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
+-
+\\n[rst2man-indent0]
+\\n[rst2man-indent1]
+\\n[rst2man-indent2]
+..
+.de1 INDENT
+.\" .rstReportMargin pre:
+. RS \\$1
+. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
+. nr rst2man-indent-level +1
+.\" .rstReportMargin post:
+..
+.de UNINDENT
+. RE
+.\" indent \\n[an-margin]
+.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.nr rst2man-indent-level -1
+.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
+..
+.\" Man page generated from reStructeredText.
+.
+.SH SYNOPSIS
+.sp
+#include <libmemcached/memcached_pool.h>
+.INDENT 0.0
+.TP
+.B memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_st * memcached_pool_pop (memcached_pool_st* pool, bool block, memcached_return_t *rc);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_return_t memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+.UNINDENT
+.INDENT 0.0
+.TP
+.B memcached_st *memcached_create (memcached_st *ptr);
+.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)
+.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)
+.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
+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..
+.sp
+memcached_pool_pop() 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.
+.sp
+memcached_pool_behavior_set() and memcached_pool_behagior_get() 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.
+.sp
+memcached_pool_pop() returns a pointer to a memcached_st structure
+from the pool (or NULL if an allocation cannot be satisfied).
+.sp
+memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
+.sp
+memcached_pool_behavior_get() and memcached_pool_behavior_get()
+returns MEMCACHED_SUCCESS upon success.
+.SH HOME
+.sp
+To find out more information please check:
+\fI\%https://launchpad.net/libmemcached\fP
+.SH AUTHOR
+.sp
+Brian Aker, <\fI\%brian@tangent.org\fP>
+.sp
+Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
+.SH SEE ALSO
+.sp
+\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
+.SH AUTHOR
+Brian Aker
+.SH COPYRIGHT
+2011, Brian Aker DataDifferential, http://datadifferential.com/
+.\" Generated by docutils manpage writer.
+.\" 
+.
index 4aa5f87d106cb69557aa7c64e429c3e0831a7b03..5bc859e5ad680cc50f29a607cf1bef0749e8f0e8 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_PREPEND" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_PREPEND" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_prepend \- Storing and Replacing Data
 .
 .SH NAME
 memcached_prepend \- Storing and Replacing Data
 .
index d310a8d99843e2e28018b45acd91676eb26deef8..c55eddbad4e0956d542967ad59675d04832cad9f 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_PREPEND_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_PREPEND_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_prepend_by_key \- Storing and Replacing Data
 .
 .SH NAME
 memcached_prepend_by_key \- Storing and Replacing Data
 .
index c0a4f8c16f49a82ebf7cca2dc594bf83b11be6d0..0f78e613ffaf1aa7e4dbcf7694c8e98e6647aeb3 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_QUIT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_QUIT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_quit \- libmemcached Documentation
 .
 .SH NAME
 memcached_quit \- libmemcached Documentation
 .
index 3b359afb25b059c35b118e85faf3c8b206bfb6a5..b4aa226e112f18dc86fb167ded157197a7c9280a 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_REPLACE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_REPLACE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_replace \- Storing and Replacing Data
 .
 .SH NAME
 memcached_replace \- Storing and Replacing Data
 .
index fc3f37ae5ca2e1cbfc3c3ad08270cd5dd8ca6519..8a50dbd64264851e7d6666e8a34d520bf50b7aed 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_REPLACE_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_REPLACE_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_replace_by_key \- Storing and Replacing Data
 .
 .SH NAME
 memcached_replace_by_key \- Storing and Replacing Data
 .
index 5c79c7b9cf9c3abf932df5459f4635bc4b11c867..445ab8d610b34d3770c4dfd36532f1a3a4bb9b2b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_CAS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_CAS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_cas \- Working with result sets
 .
 .SH NAME
 memcached_result_cas \- Working with result sets
 .
index 6d426325e180972a1d78f240d6b432ba638e618c..47848bbe9b1718658b9daba991471931904fbd84 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_CREATE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_CREATE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_create \- Working with result sets
 .
 .SH NAME
 memcached_result_create \- Working with result sets
 .
index 501b9ec94a079e222c20a5c2c1b2253a1145904d..dc9c524886d56ba76acfb7b0e472f0c77f222fe4 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_FLAGS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_FLAGS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_flags \- Working with result sets
 .
 .SH NAME
 memcached_result_flags \- Working with result sets
 .
index dddf7307abf834854adbd06899c785e2c26ddb68..b5276e1b80d7714c576cb839f871527911866670 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_FREE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_FREE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_free \- Working with result sets
 .
 .SH NAME
 memcached_result_free \- Working with result sets
 .
index 8a648a563b9d5c3c35d86b515466da95a63ff22e..f95a4d30ef17391ee50f9ae4d4eca17b3bdc77b5 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_key_length \- Working with result sets
 .
 .SH NAME
 memcached_result_key_length \- Working with result sets
 .
index 88d0fa2a04ca1ee58d204c1ef3e7ed54f38e1381..81fceab5763edcd919b8bfd5fd0fee4313b09ded 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_KEY_VALUE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_KEY_VALUE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_key_value \- Working with result sets
 .
 .SH NAME
 memcached_result_key_value \- Working with result sets
 .
index 0d28a293dd2971944dcec6cff77e7c6897cbf30b..b56053e6def4591d7d2a6f8cf437f7f90af426b7 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_LENGTH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_LENGTH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_length \- Working with result sets
 .
 .SH NAME
 memcached_result_length \- Working with result sets
 .
index c1b418dedfc45bcb13eeb49bfa21acebaae51e7d..99dbb104145924d6cf3335189ef68f15f1d43494 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_ST" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_ST" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_st \- Working with result sets
 .
 .SH NAME
 memcached_result_st \- Working with result sets
 .
index b04a2ad032aaa088127cf6389cf7eee0dc9e4272..33dedb93d704f34a28272f22da063911e75210fa 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_RESULT_VALUE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_RESULT_VALUE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_result_value \- Working with result sets
 .
 .SH NAME
 memcached_result_value \- Working with result sets
 .
index 791b979fdaf96072438b54a1df0af5aa32786ed2..d46b0b491bf8d31d51eb6424474aa90a5055e390 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SASL" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SASL" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_sasl \- libmemcached Documentation
 .
 .SH NAME
 memcached_sasl \- libmemcached Documentation
 .
index 4d5999373b3fc0c08e1ffe605ae7a9019aacd794..46dc450dc5f0a4c1a100a6a2c8b4912765fe76b7 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_sasl_set_auth_data \- libmemcached Documentation
 .
 .SH NAME
 memcached_sasl_set_auth_data \- libmemcached Documentation
 .
index a63ab51ba298f60e6d81e96f2cc8baaa7287f249..007e78233dc06069406c44d027330c07b995cbe6 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_ADD" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_ADD" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_add \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_add \- libmemcached Documentation
 .
index ec5a8bd00f43e09457de9fb396179b53a6bc5be5..229a32d4c71e9965dcc920d9f0866ed7f583cce8 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_add_unix_socket \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_add_unix_socket \- libmemcached Documentation
 .
index 41e30cbec76f1bffdea9497726bbf37f00f6fe94..dbac54d12649ec66b24ac68ddd0e6e9aa1c2a097 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_COUNT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_COUNT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_count \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_count \- libmemcached Documentation
 .
index a355c13036e21455b324f70952b372b77e706c1b..9d986faaac4ee95e025fca5c222d9074d7ed0b86 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_CURSOR" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_CURSOR" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_cursor \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_cursor \- libmemcached Documentation
 .
index 95ffc8fe8ae318ae1f92a11fdbcdf52668bf7f6e..b17688211943761fb08008ca9da994f6e959a34a 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_LIST" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_list \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_list \- libmemcached Documentation
 .
index fd3feb33a324bfd1c54eb124267f8a56aa3f581b..054ef6f8414f73c2ab73e7430560c81d60dc341b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_LIST_APPEND" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST_APPEND" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_list_append \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_list_append \- libmemcached Documentation
 .
index 377483245edb586874f380d489180223c2f4997c..39dfd3bf6dfb474d2da431b37567318c0d396768 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_LIST_COUNT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST_COUNT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_list_count \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_list_count \- libmemcached Documentation
 .
index d4b9f9293bbd9154b72bc704059b85e35e706c40..a1bd6e9acb5fbd4064b35fdf06d8df33d81f863c 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_LIST_FREE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_LIST_FREE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_list_free \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_list_free \- libmemcached Documentation
 .
index bd291b3dcb23aeaf437746e8d67c1f7a6e90cabb..a2edbca0d977f10bd62e324e4213dd9e495444b1 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_PUSH" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_PUSH" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_push \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_push \- libmemcached Documentation
 .
index ac7c9a4645eb5e5b8acb82c975b31aa4a924202b..e4a863a6d333d1f6ea0535c4bc977dec0a556924 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVER_ST" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVER_ST" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_server_st \- libmemcached Documentation
 .
 .SH NAME
 memcached_server_st \- libmemcached Documentation
 .
index a58c487846d5afd628dc34bfdb4e7ca82466e2ab..9658d1e01cf9e12f14db55bbb461fbb8ccc1650b 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVERS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVERS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_servers \- libmemcached Documentation
 .
 .SH NAME
 memcached_servers \- libmemcached Documentation
 .
index 8bc67ecc4bb634641bb39d86c0826b5d8ffc9c6e..149c98e7e2976878e6955176bf51934001547c4f 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVERS_PARSE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVERS_PARSE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_servers_parse \- libmemcached Documentation
 .
 .SH NAME
 memcached_servers_parse \- libmemcached Documentation
 .
index 42dde1fedef0a87b317b3ca3638fad97b0419f67..be51b9f3a598e1de5002d0d941713467c95bd38e 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SERVERS_RESET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SERVERS_RESET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_servers_reset \- libmemcached Documentation
 .
 .SH NAME
 memcached_servers_reset \- libmemcached Documentation
 .
index 048dc42b3194f4bfe46eef2e2c7ecde774c8e9af..b30a53d49d70a3c0be317a1b59765c166357ad29 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SET" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SET" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_set \- Storing and Replacing Data
 .
 .SH NAME
 memcached_set \- Storing and Replacing Data
 .
index 8c870cbe05982cc7d53b71c38cbede2a6ea77a00..60ceb9f5d4d3717f24b7441b105bf945cf89a439 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SET_BY_KEY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SET_BY_KEY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_set_by_key \- Storing and Replacing Data
 .
 .SH NAME
 memcached_set_by_key \- Storing and Replacing Data
 .
index e4547ff206e596ab0d2305add10ce7ac9e644c1d..6f6b429329e72e821139a3cf5612cfd433c68c26 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_set_memory_allocators \- libmemcached Documentation
 .
 .SH NAME
 memcached_set_memory_allocators \- libmemcached Documentation
 .
index f74529c0c50e77c2177839ce7499ee3545337dd3..31f905b02f5be4550e721a56b51b9549ea2b2c21 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_set_memory_allocators_context \- libmemcached Documentation
 .
 .SH NAME
 memcached_set_memory_allocators_context \- libmemcached Documentation
 .
index 241d7ef5a2350c0c920873179c1c97d3d6ad6a6a..12919f491405089ad3d0b0af92d27f57c12b34c6 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_set_sasl_callbacks \- libmemcached Documentation
 .
 .SH NAME
 memcached_set_sasl_callbacks \- libmemcached Documentation
 .
index f7bcb5549dde4b3914ac51d0038c061639343d43..a24319fc1d5209aa739cd60e33c934b7530fc7d3 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_SET_USER_DATA" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_SET_USER_DATA" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_set_user_data \- libmemcached Documentation
 .
 .SH NAME
 memcached_set_user_data \- libmemcached Documentation
 .
index 03dd9213d7b2af4911c43ed0548b92e8afc43b87..d0877c3c006afecf49b938f3d7dd7c2156aad5e7 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_STAT" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_STAT" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_stat \- libmemcached Documentation
 .
 .SH NAME
 memcached_stat \- libmemcached Documentation
 .
index 233c4f351600f9d0229d31792485588439bcae3c..43c6f8460779c0a3241be9386b39a2c3a1e60673 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_STAT_EXECUTE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_STAT_EXECUTE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_stat_execute \- libmemcached Documentation
 .
 .SH NAME
 memcached_stat_execute \- libmemcached Documentation
 .
index 82201db40bd1d254b24ffdb9c82be23eb9ba7406..d9d3309e29baef839295238e39eb7f272d0233e8 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_STAT_GET_KEYS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_STAT_GET_KEYS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_stat_get_keys \- libmemcached Documentation
 .
 .SH NAME
 memcached_stat_get_keys \- libmemcached Documentation
 .
index d629cb6ffabbc3e2770f1c9433d2c3bee0649ac5..1fe3a26458a9f4ea3cd0f280e0ce6e7d63fcb777 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_STAT_GET_VALUE" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_STAT_GET_VALUE" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_stat_get_value \- libmemcached Documentation
 .
 .SH NAME
 memcached_stat_get_value \- libmemcached Documentation
 .
index dd879d4e8aeffc1b30755f9b1f4bff7d6b7aab40..162caf55d704ec4cb70848c059a595f000f367c4 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_STAT_SERVERNAME" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_STAT_SERVERNAME" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_stat_servername \- libmemcached Documentation
 .
 .SH NAME
 memcached_stat_servername \- libmemcached Documentation
 .
index f61f55500f650886e40284df08d9ebe2d6742121..fbcb8487b762e682f625ec8ba1ce8ddce2e2ab18 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_STATS" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_STATS" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_stats \- libmemcached Documentation
 .
 .SH NAME
 memcached_stats \- libmemcached Documentation
 .
index 5f0c775832e68ff1c2d85751ff26151e6e2359cb..d9d5ef1c5eab6ebd0058392a211d6fbad318ec60 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_STRERROR" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_STRERROR" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_strerror \- libmemcached Documentation
 .
 .SH NAME
 memcached_strerror \- libmemcached Documentation
 .
index 56e9abc41ffbedc36f828d76f3930a70739b265f..ec1815bf549990b7515d8f63719aed7d4954d7fd 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_USER_DATA" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_USER_DATA" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_user_data \- libmemcached Documentation
 .
 .SH NAME
 memcached_user_data \- libmemcached Documentation
 .
index adc61beb6c29a1c8daf37c9c9cb4333a6965ebd5..bc90bec0e8dfaa0ca131572e3e07d51cfdb5068d 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_VERBOSITY" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_VERBOSITY" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_verbosity \- libmemcached Documentation
 .
 .SH NAME
 memcached_verbosity \- libmemcached Documentation
 .
index 2462b757236e1ea50a38eb491704b0835adb070e..9790bfdc20df7a151e0f2f81c380f17499fc34c1 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED_VERSION" "3" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED_VERSION" "3" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcached_version \- libmemcached Documentation
 .
 .SH NAME
 memcached_version \- libmemcached Documentation
 .
index 6659f88f4e2c78e436489344de1e1e16bdaab0eb..7310eee7d40b5a85a0db5e1cf1fb622bbff01956 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCAPABLE" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCAPABLE" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcapable \- libmemcached Documentation
 .
 .SH NAME
 memcapable \- libmemcached Documentation
 .
@@ -33,6 +33,8 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .sp
 Check the server for compatibility and capabilities
 .SH SYNOPSIS
 .sp
 Check the server for compatibility and capabilities
 .SH SYNOPSIS
+.sp
+\fBmemcapable\fP
 .INDENT 0.0
 .TP
 .B \-h hostname
 .INDENT 0.0
 .TP
 .B \-h hostname
index 5b4c395da1ed47d937701f5c9a6f7e96d558bc50..79071a141048a7901ce7cef5b327677ee4597905 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCAT" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCAT" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcat \- libmemcached Documentation
 .
 .SH NAME
 memcat \- libmemcached Documentation
 .
@@ -33,6 +33,8 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .sp
 Copy a set of keys to stdout
 .SH SYNOPSIS
 .sp
 Copy a set of keys to stdout
 .SH SYNOPSIS
+.sp
+\fBmemcat\fP
 .INDENT 0.0
 .TP
 .B \-\-help
 .INDENT 0.0
 .TP
 .B \-\-help
index 0a9a46f16abeeec52576368412739fc9713a80a7..0f5bfc5e71b5c7a124820e01332b41894a1b4827 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCP" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMCP" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memcp \- libmemcached Documentation
 .
 .SH NAME
 memcp \- libmemcached Documentation
 .
@@ -35,6 +35,12 @@ Copies files to a collection of memcached servers
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
+.B program
+.
+\fImemcp\fP
+.UNINDENT
+.INDENT 0.0
+.TP
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
index 5df5ab66371988354aa2fd429430ded9e039088e..7a5c35a61c4262b5a219ca27dca2c0f160388ccd 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMDUMP" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMDUMP" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memdump \- libmemcached Documentation
 .
 .SH NAME
 memdump \- libmemcached Documentation
 .
@@ -35,6 +35,12 @@ Dump a list of keys from a server.
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
+.B program
+.
+\fImemdump\fP
+.UNINDENT
+.INDENT 0.0
+.TP
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
index 8af03844cf3e03a5bc289b55e9949ec895639f2f..b7c6af0e34319936b1eeb93d2ac66846a45a1279 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMERROR" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMERROR" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memerror \- libmemcached Documentation
 .
 .SH NAME
 memerror \- libmemcached Documentation
 .
@@ -35,6 +35,12 @@ Translate a memcached error code to a string
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
+.B program
+.
+\fImemerror\fP
+.UNINDENT
+.INDENT 0.0
+.TP
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
index 192b3e0748147a0fe20508e44d94858eb186f349..d3c446c6695bfd7d1e4d420aa4298b8eefb789f6 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMFLUSH" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMFLUSH" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memflush \- libmemcached Documentation
 .
 .SH NAME
 memflush \- libmemcached Documentation
 .
@@ -35,6 +35,12 @@ Reset a server or list of servers
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
+.B program
+.
+\fImemflush\fP
+.UNINDENT
+.INDENT 0.0
+.TP
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
index 6735160449c118b4a28006e9fe7023fc56fb1490..19b3d9c1cf33064a9813fb05535026c56f7e5b83 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMRM" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMRM" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memrm \- libmemcached Documentation
 .
 .SH NAME
 memrm \- libmemcached Documentation
 .
@@ -35,6 +35,12 @@ memrm \- Remove a key(s) from a collection of memcached servers
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
+.B program
+.
+\fImemrm\fP
+.UNINDENT
+.INDENT 0.0
+.TP
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
index 304ccbc5c491ec4ea34d0daabb73555f3d4d8871..5fae1bd6b28d25f82a8513c70b47bb4319387bdb 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMSLAP" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMSLAP" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memslap \- libmemcached Documentation
 .
 .SH NAME
 memslap \- libmemcached Documentation
 .
@@ -31,6 +31,16 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .\" Man page generated from reStructeredText.
 .
 .SH SYNOPSIS
 .\" Man page generated from reStructeredText.
 .
 .SH SYNOPSIS
+.INDENT 0.0
+.TP
+.B program
+.
+\fImemslap\fP
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-\-help
+.UNINDENT
 .SH DESCRIPTION
 .sp
 \fBmemslap\fP is a load generation and benchmark tool for memcached(1)
 .SH DESCRIPTION
 .sp
 \fBmemslap\fP is a load generation and benchmark tool for memcached(1)
index bc0fdd13dd9557b7799e29c1bad7716e840dd897..d4811d742e2db22654dce322d6846e69d3c40c5e 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMSTAT" "1" "April 09, 2011" "0.47" "libmemcached"
+.TH "MEMSTAT" "1" "April 10, 2011" "0.47" "libmemcached"
 .SH NAME
 memstat \- libmemcached Documentation
 .
 .SH NAME
 memstat \- libmemcached Documentation
 .
@@ -35,6 +35,12 @@ memstat \- Display the operating status of a single or group of memcached server
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
 .SH SYNOPSIS
 .INDENT 0.0
 .TP
+.B program
+.
+\fImemstat\fP
+.UNINDENT
+.INDENT 0.0
+.TP
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
 .B \-\-help
 .UNINDENT
 .SH DESCRIPTION
index 841b7a64da5663e4f22aef67ec0315197a4a2a29..5229a97041c0323216e65519fb390e214b631bba 100644 (file)
@@ -7,6 +7,8 @@ memaslap - Load testing  and benchmarking a server
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
+:program:: `memaslap`
+
 .. program:: memaslap
 
 .. option:: --help
 .. program:: memaslap
 
 .. option:: --help
index b7a0f04081754cb88636e5e4a072d37b6a47d266..603419f53039a62da361c4e802cad1fd7eb04661 100644 (file)
@@ -8,7 +8,9 @@ SYNOPSIS
 
 #include <libmemcached/memcached_pool.h>
 
 
 #include <libmemcached/memcached_pool.h>
 
-.. c:function:: memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max);
+.. c:function:: memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length); 
+
+.. c:function:: memcached_pool_st * memcached_pool_create(memcached_st* mmc, int initial, int max); DEPRECATED
  
 .. c:function:: memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
  
  
 .. c:function:: memcached_st * memcached_pool_destroy(memcached_pool_st* pool);
  
@@ -30,23 +32,28 @@ DESCRIPTION
 -----------
 
 
 -----------
 
 
-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 \ ``memcached_st``\  objects. The mmc argument should be an
-initialised \ ``memcached_st``\  structure, and a successfull invocation of
-memcached_pool_create takes full ownership of the variable (until it
-is released by memcached_pool_destroy). The \ ``initial``\  argument
-specifies the initial size of the connection pool, and the \ ``max``\ 
-argument 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.
+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
+\ ``memcached_st``\ objects. Please see :manpage:`libmemcached_configuration` for details on the format of the configuration string.
+
+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 \ ``memcached_st``\ objects. The mmc argument should be an
+initialised \ ``memcached_st``\ structure, and a successfull invocation of
+memcached_pool_create takes full ownership of the variable (until it is
+released by memcached_pool_destroy).  The \ ``initial``\  argument specifies
+the initial size of the connection pool, and the \ ``max``\ argument
+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.
 
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() and release all allocated
 resources. It will return the pointer to the \ ``memcached_st``\  structure
 
 memcached_pool_destroy() is used to destroy the connection pool
 created with memcached_pool_create() and release all allocated
 resources. It will return the pointer to the \ ``memcached_st``\  structure
-passed as an argument to memcached_pool_create(), and returns the
-ownership of the pointer to the caller.
+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..
 
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
 
 memcached_pool_pop() is used to grab a connection structure from the
 connection pool. The block argument specifies if the function should
index 97dbc066b656d87a47d348b95657f9c86fcd3cf9..a22ba2c865cdf528071c4c6f544ab342cc1d3b24 100644 (file)
@@ -10,7 +10,9 @@ Check the server for compatibility and capabilities
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
-.. program:: memcat
+:program:`memcapable`
+
+.. program:: memcapable
 
 .. option:: -h hostname
  
 
 .. option:: -h hostname
  
index 911e478bdfaf182367e91b2783389dbe3dd7e59b..0558ed2a5a76f0d2b29bdcc841db993b1be8c1a5 100644 (file)
@@ -11,6 +11,7 @@ SYNOPSIS
 --------
 
 
 --------
 
 
+:program:`memcat`
 
 .. program:: memcat
 
 
 .. program:: memcat
 
index 1933078b6eeeee1240018088bacfc47837db3c48..0d4bae574a20368f5cd7777ac0830706ba5e6224 100644 (file)
@@ -10,6 +10,8 @@ Copies files to a collection of memcached servers
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
+:program: `memcp`
+
 .. program:: memcp
 
 .. option:: --help
 .. program:: memcp
 
 .. option:: --help
index 05fea79a9342f726156cd6be9e417a1d3ac0c1d3..e667278e9b5b7d430ddefe1bbce0414cc54c85bf 100644 (file)
@@ -10,6 +10,8 @@ Dump a list of keys from a server.
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
+:program: `memdump`
+
 .. program:: memdump
 
 .. option:: --help
 .. program:: memdump
 
 .. option:: --help
index 880de8caeb36ef9f8faf36fd5c9fed4fea3d67bc..37638c262d3d675799d36e92f447cdee74e029cd 100644 (file)
@@ -10,6 +10,8 @@ Translate a memcached error code to a string
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
+:program: `memerror`
+
 .. program:: memerror
 
 .. option:: --help
 .. program:: memerror
 
 .. option:: --help
index 88982259f6c05de5f8c9cd472df201a41da80720..62ab6792e47061a3e67857f7cdfb1bfba873139c 100644 (file)
@@ -10,6 +10,8 @@ Reset a server or list of servers
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
+:program: `memflush`
+
 .. program:: memflush
 
 .. option:: --help
 .. program:: memflush
 
 .. option:: --help
index eab53ba09038ddd8979e7dae03c7ac4657996274..d35cbd514bb7bbeb740dc129f9dedee312ae803e 100644 (file)
@@ -10,7 +10,7 @@ memrm - Remove a key(s) from a collection of memcached servers
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
-
+:program: `memrm`
 
 .. program:: memrm
 
 
 .. program:: memrm
 
index 134cdf2dce24e4ee1d6bd487aaad3dff41ff3e20..cde4ace733c8f2972a6116639289bda1be7303a8 100644 (file)
@@ -8,8 +8,11 @@ SYNOPSIS
 --------
 
 
 --------
 
 
-.. program::  memslap [options]
+:program: `memslap`
 
 
+.. program::  memslap
+
+.. option:: --help
 
 -----------
 DESCRIPTION
 
 -----------
 DESCRIPTION
index bed683989c51c100e46e4000f2739878ac76dc6f..da15a8d4ad7637189c208c67c9fbfcd71ac83625 100644 (file)
@@ -10,6 +10,8 @@ memstat - Display the operating status of a single or group of memcached servers
 SYNOPSIS
 --------
 
 SYNOPSIS
 --------
 
+:program: `memstat`
+
 .. program:: memstat
 
 .. option:: --help
 .. program:: memstat
 
 .. option:: --help
index 9f17f0c3f26d971c49e15d95bbe26cb0349577d9..a7b17f0ce359e9085761f5421d07f8dacc4d34dc 100644 (file)
@@ -165,7 +165,9 @@ static inline memcached_return_t set_socket_nonblocking(memcached_server_st *ptr
   int flags;
 
   do
   int flags;
 
   do
+  {
     flags= fcntl(ptr->fd, F_GETFL, 0);
     flags= fcntl(ptr->fd, F_GETFL, 0);
+  }
   while (flags == -1 && (errno == EINTR || errno == EAGAIN));
 
   unlikely (flags == -1)
   while (flags == -1 && (errno == EINTR || errno == EAGAIN));
 
   unlikely (flags == -1)
@@ -178,7 +180,9 @@ static inline memcached_return_t set_socket_nonblocking(memcached_server_st *ptr
     int rval;
 
     do
     int rval;
 
     do
+    {
       rval= fcntl(ptr->fd, F_SETFL, flags | O_NONBLOCK);
       rval= fcntl(ptr->fd, F_SETFL, flags | O_NONBLOCK);
+    }
     while (rval == -1 && (errno == EINTR || errno == EAGAIN));
 
     unlikely (rval == -1)
     while (rval == -1 && (errno == EINTR || errno == EAGAIN));
 
     unlikely (rval == -1)
index 120c2087b159d12a3f6d998ce1d569c270a27eea..3c327d7bd6a94947207b13324c83e39bc1265439 100644 (file)
@@ -121,6 +121,8 @@ static inline bool _memcached_init(memcached_st *self)
 
   self->error_messages= NULL;
   self->prefix_key= NULL;
 
   self->error_messages= NULL;
   self->prefix_key= NULL;
+  self->configure.initial_pool_size= 1;
+  self->configure.max_pool_size= 1;
   self->configure.filename= NULL;
 
   return true;
   self->configure.filename= NULL;
 
   return true;
index fa291f930f71a70aab1ced09dfbe92c39090390e..1654ee1d04a334483ff6307b0fb29737bd55610d 100644 (file)
@@ -159,6 +159,8 @@ struct memcached_st {
   struct memcached_error_t *error_messages;
   struct memcached_array_st *prefix_key;
   struct {
   struct memcached_error_t *error_messages;
   struct memcached_array_st *prefix_key;
   struct {
+    uint32_t initial_pool_size;
+    uint32_t max_pool_size;
     struct memcached_array_st *filename;
   } configure;
   struct {
     struct memcached_array_st *filename;
   } configure;
   struct {
index 7879cc2312e6a4c8d321ca254998aa6e81fa9984..e8be3c73e1850a8493e08b717d1d5da206df567d 100644 (file)
@@ -25,6 +25,7 @@ struct memcached_pool_st
   int firstfree;
   uint32_t size;
   uint32_t current_size;
   int firstfree;
   uint32_t size;
   uint32_t current_size;
+  bool _owns_master;
   char *version;
 };
 
   char *version;
 };
 
@@ -71,17 +72,17 @@ static int grow_pool(memcached_pool_st* pool)
   return EXIT_SUCCESS;
 }
 
   return EXIT_SUCCESS;
 }
 
-memcached_pool_st *memcached_pool_create(memcached_st* mmc,
-                                         uint32_t initial, uint32_t max)
+static inline memcached_pool_st *_pool_create(memcached_st* mmc, uint32_t initial, uint32_t max)
 {
 {
-  memcached_pool_st* ret = NULL;
-  memcached_pool_st object = { .mutex = PTHREAD_MUTEX_INITIALIZER,
+  memcached_pool_st* ret= NULL;
+  memcached_pool_st object= { .mutex = PTHREAD_MUTEX_INITIALIZER,
     .cond = PTHREAD_COND_INITIALIZER,
     .master = mmc,
     .mmc = calloc(max, sizeof(memcached_st*)),
     .cond = PTHREAD_COND_INITIALIZER,
     .master = mmc,
     .mmc = calloc(max, sizeof(memcached_st*)),
-    .firstfree = -1,
+    .firstfree= -1,
     .size = max,
     .size = max,
-    .current_size = 0 };
+    .current_size= 0,
+    ._owns_master= false};
 
   if (object.mmc != NULL)
   {
 
   if (object.mmc != NULL)
   {
@@ -108,9 +109,38 @@ memcached_pool_st *memcached_pool_create(memcached_st* mmc,
   return ret;
 }
 
   return ret;
 }
 
+memcached_pool_st *memcached_pool_create(memcached_st* mmc, uint32_t initial, uint32_t max)
+{
+  return _pool_create(mmc, initial, max);
+}
+
+memcached_pool_st * memcached_pool(const char *option_string, size_t option_string_length)
+{
+  memcached_pool_st *self;
+  memcached_st *memc= memcached_create_with_options(option_string, option_string_length);
+
+  if (! memc)
+    return NULL;
+
+  self= memcached_pool_create(memc, memc->configure.initial_pool_size, memc->configure.max_pool_size);
+  if (self)
+  {
+    self->_owns_master= true;
+  }
+  else
+  {
+    memcached_free(memc);
+  }
+
+  return self;
+}
+
 memcached_st*  memcached_pool_destroy(memcached_pool_st* pool)
 {
 memcached_st*  memcached_pool_destroy(memcached_pool_st* pool)
 {
-  memcached_st *ret = pool->master;
+  if (! pool)
+    return NULL;
+
+  memcached_st *ret= pool->master;
 
   for (int xx= 0; xx <= pool->firstfree; ++xx)
   {
 
   for (int xx= 0; xx <= pool->firstfree; ++xx)
   {
@@ -122,6 +152,11 @@ memcached_st*  memcached_pool_destroy(memcached_pool_st* pool)
   pthread_mutex_destroy(&pool->mutex);
   pthread_cond_destroy(&pool->cond);
   free(pool->mmc);
   pthread_mutex_destroy(&pool->mutex);
   pthread_cond_destroy(&pool->cond);
   free(pool->mmc);
+  if (pool->_owns_master)
+  {
+    memcached_free(pool->master);
+    ret= NULL;
+  }
   free(pool);
 
   return ret;
   free(pool);
 
   return ret;
@@ -138,7 +173,9 @@ memcached_st* memcached_pool_pop(memcached_pool_st* pool,
   do
   {
     if (pool->firstfree > -1)
   do
   {
     if (pool->firstfree > -1)
+    {
       ret= pool->mmc[pool->firstfree--];
       ret= pool->mmc[pool->firstfree--];
+    }
     else if (pool->current_size == pool->size)
     {
       if (!block)
     else if (pool->current_size == pool->size)
     {
       if (!block)
@@ -149,9 +186,9 @@ memcached_st* memcached_pool_pop(memcached_pool_st* pool,
 
       if (pthread_cond_wait(&pool->cond, &pool->mutex) == -1)
       {
 
       if (pthread_cond_wait(&pool->cond, &pool->mutex) == -1)
       {
-        int err = errno;
+        int err= errno;
         mutex_exit(&pool->mutex);
         mutex_exit(&pool->mutex);
-        errno = err;
+        errno= err;
         *rc= MEMCACHED_ERRNO;
         return NULL;
       }
         *rc= MEMCACHED_ERRNO;
         return NULL;
       }
@@ -229,11 +266,14 @@ memcached_return_t memcached_pool_behavior_set(memcached_pool_st *pool,
   {
     rc= memcached_behavior_set(pool->mmc[xx], flag, data);
     if (rc == MEMCACHED_SUCCESS)
   {
     rc= memcached_behavior_set(pool->mmc[xx], flag, data);
     if (rc == MEMCACHED_SUCCESS)
+    {
       memcached_set_user_data(pool->mmc[xx], pool->version);
       memcached_set_user_data(pool->mmc[xx], pool->version);
+    }
     else
     {
       memcached_free(pool->mmc[xx]);
       memset(pool->mmc[xx], 0, sizeof(*pool->mmc[xx]));
     else
     {
       memcached_free(pool->mmc[xx]);
       memset(pool->mmc[xx], 0, sizeof(*pool->mmc[xx]));
+
       if (memcached_clone(pool->mmc[xx], pool->master) == NULL)
       {
         /* I'm not sure what to do in this case.. this would happen
       if (memcached_clone(pool->mmc[xx], pool->master) == NULL)
       {
         /* I'm not sure what to do in this case.. this would happen
index f2e71a2a415c8c23020883fe4e5ed87944488c30..f00966aa83ee50d515863c192a4647edd9db1e43 100644 (file)
@@ -23,10 +23,14 @@ struct memcached_pool_st;
 typedef struct memcached_pool_st memcached_pool_st;
 
 LIBMEMCACHED_API
 typedef struct memcached_pool_st memcached_pool_st;
 
 LIBMEMCACHED_API
-memcached_pool_st *memcached_pool_create(memcached_st* mmc, uint32_t initial,
-                                         uint32_t max);
+memcached_pool_st *memcached_pool_create(memcached_st* mmc, uint32_t initial, uint32_t max);
+
+LIBMEMCACHED_API
+memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length);
+
 LIBMEMCACHED_API
 memcached_st* memcached_pool_destroy(memcached_pool_st* pool);
 LIBMEMCACHED_API
 memcached_st* memcached_pool_destroy(memcached_pool_st* pool);
+
 LIBMEMCACHED_API
 memcached_st* memcached_pool_pop(memcached_pool_st* pool,
                                  bool block,
 LIBMEMCACHED_API
 memcached_st* memcached_pool_pop(memcached_pool_st* pool,
                                  bool block,
index 990c772d2b2fa5a747f46011eddd63430568509c..420435d5a75e2b67fd3762e588228c140a98a261 100644 (file)
@@ -35,6 +35,7 @@ noinst_HEADERS+= \
                 tests/ketama_test_cases_spy.h \
                 tests/libmemcached_world.h \
                 tests/parser.h \
                 tests/ketama_test_cases_spy.h \
                 tests/libmemcached_world.h \
                 tests/parser.h \
+                tests/pool.h \
                 tests/print.h \
                 tests/replication.h \
                 tests/string.h \
                 tests/print.h \
                 tests/replication.h \
                 tests/string.h \
@@ -56,6 +57,7 @@ tests_testapp_SOURCES= \
                       tests/error_conditions.cc \
                       tests/mem_functions.c \
                       tests/parser.cc \
                       tests/error_conditions.cc \
                       tests/mem_functions.c \
                       tests/parser.cc \
+                      tests/pool.cc \
                       tests/print.cc \
                       tests/replication.cc \
                       tests/string.cc \
                       tests/print.cc \
                       tests/replication.cc \
                       tests/string.cc \
index 014c9bba65f98dcee30d5b0f98d22666a5e0dbc7..72b3b193be0d5fec3c05938544308952fc1e63a0 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <libtest/test.h>
 #include "tests/parser.h"
 
 #include <libtest/test.h>
 #include "tests/parser.h"
+#include "tests/pool.h"
 #include "tests/string.h"
 #include "tests/replication.h"
 #include "tests/basic.h"
 #include "tests/string.h"
 #include "tests/replication.h"
 #include "tests/basic.h"
@@ -5980,10 +5981,9 @@ test_st tests[] ={
   {"delete_through", 1, (test_callback_fn)delete_through },
   {"noreply", 1, (test_callback_fn)noreply_test},
   {"analyzer", 1, (test_callback_fn)analyzer_test},
   {"delete_through", 1, (test_callback_fn)delete_through },
   {"noreply", 1, (test_callback_fn)noreply_test},
   {"analyzer", 1, (test_callback_fn)analyzer_test},
-#ifdef HAVE_LIBMEMCACHEDUTIL
   {"connectionpool", 1, (test_callback_fn)connection_pool_test },
   {"connectionpool", 1, (test_callback_fn)connection_pool_test },
+  {"memcached_pool_test", 1, (test_callback_fn)memcached_pool_test },
   {"ping", 1, (test_callback_fn)ping_test },
   {"ping", 1, (test_callback_fn)ping_test },
-#endif
   {"test_get_last_disconnect", 1, (test_callback_fn)test_get_last_disconnect},
   {"verbosity", 1, (test_callback_fn)test_verbosity},
   {"test_server_failure", 1, (test_callback_fn)test_server_failure},
   {"test_get_last_disconnect", 1, (test_callback_fn)test_get_last_disconnect},
   {"verbosity", 1, (test_callback_fn)test_verbosity},
   {"test_server_failure", 1, (test_callback_fn)test_server_failure},
index 900e89a7631ba73a14a0bfea7d38f18774471f87..f3dca7927cf5f1a9422fbc56a42c3f63245d4c6d 100644 (file)
@@ -44,6 +44,7 @@
 
 #define BUILDING_LIBMEMCACHED
 #include <libmemcached/memcached.h>
 
 #define BUILDING_LIBMEMCACHED
 #include <libmemcached/memcached.h>
+#include <libmemcached/memcached.h>
 
 #include "tests/parser.h"
 #include "tests/print.h"
 
 #include "tests/parser.h"
 #include "tests/print.h"
@@ -483,9 +484,11 @@ test_return_t random_statement_build_test(memcached_st*)
         break;
       case ENOMEM:
         std::cerr << "Failed to allocate memory for memcached_create_with_options()" << std::endl;
         break;
       case ENOMEM:
         std::cerr << "Failed to allocate memory for memcached_create_with_options()" << std::endl;
+        memcached_free(memc_ptr);
         return TEST_FAILURE;
       default:
         std::cerr << "Unknown error from memcached_create_with_options?!!" << std::endl;
         return TEST_FAILURE;
       default:
         std::cerr << "Unknown error from memcached_create_with_options?!!" << std::endl;
+        memcached_free(memc_ptr);
         return TEST_FAILURE;
       }
     }
         return TEST_FAILURE;
       }
     }
index c50b3789b1e2502a10acf75f383157b1b148db06..c53f0e411fca128fb47316dd2a80e6a1f2baa77a 100644 (file)
@@ -1,6 +1,6 @@
 /*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
  * 
 /*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
  * 
- *  Gearmand client and server library.
+ *  Libmemcached
  *
  *  Copyright (C) 2011 Data Differential, http://datadifferential.com/
  *  All rights reserved.
  *
  *  Copyright (C) 2011 Data Differential, http://datadifferential.com/
  *  All rights reserved.
diff --git a/tests/pool.cc b/tests/pool.cc
new file mode 100644 (file)
index 0000000..e792923
--- /dev/null
@@ -0,0 +1,71 @@
+/*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
+ * 
+ *  Libmemcached Client and Server 
+ *
+ *  Copyright (C) 2011 Data Differential, http://datadifferential.com/
+ *  All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are
+ *  met:
+ *
+ *      * Redistributions of source code must retain the above copyright
+ *  notice, this list of conditions and the following disclaimer.
+ *
+ *      * Redistributions in binary form must reproduce the above
+ *  copyright notice, this list of conditions and the following disclaimer
+ *  in the documentation and/or other materials provided with the
+ *  distribution.
+ *
+ *      * The names of its contributors may not be used to endorse or
+ *  promote products derived from this software without specific prior
+ *  written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <config.h>
+
+#include <vector>
+#include <iostream>
+#include <string>
+#include <errno.h>
+
+#include <libmemcached/memcached.h>
+#include <libmemcached/util.h>
+#include <tests/pool.h>
+
+test_return_t memcached_pool_test(memcached_st *)
+{
+  const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com";
+  memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));
+
+  memcached_return_t rc;
+  memcached_st *memc= memcached_pool_pop(pool, false, &rc);
+
+  test_true(rc == MEMCACHED_SUCCESS);
+  test_true(memc);
+
+  /*
+    Release the memc_ptr that was pulled from the pool
+  */
+  memcached_pool_push(pool, memc);
+
+  /*
+    Destroy the pool.
+  */
+  memcached_pool_destroy(pool);
+
+  return TEST_SUCCESS;
+}
diff --git a/tests/pool.h b/tests/pool.h
new file mode 100644 (file)
index 0000000..45bb14d
--- /dev/null
@@ -0,0 +1,51 @@
+/*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
+ * 
+ *  Libmemcached client and server library.
+ *
+ *  Copyright (C) 2011 Data Differential, http://datadifferential.com/
+ *  All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are
+ *  met:
+ *
+ *      * Redistributions of source code must retain the above copyright
+ *  notice, this list of conditions and the following disclaimer.
+ *
+ *      * Redistributions in binary form must reproduce the above
+ *  copyright notice, this list of conditions and the following disclaimer
+ *  in the documentation and/or other materials provided with the
+ *  distribution.
+ *
+ *      * The names of its contributors may not be used to endorse or
+ *  promote products derived from this software without specific prior
+ *  written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#pragma once
+
+#include <libtest/test.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+LIBTEST_INTERNAL_API
+test_return_t memcached_pool_test(memcached_st *);
+
+#ifdef __cplusplus
+}
+#endif