Merge lp:~kent/libmemcached/KBDocs4 into lp:~tangent-org/libmemcached/trunk

Proposed by KentBozlinski
Status: Merged
Merge reported by: Brian Aker
Merged at revision: not available
Proposed branch: lp:~kent/libmemcached/KBDocs4
Merge into: lp:~tangent-org/libmemcached/trunk
Diff against target: 491 lines (+120/-95)
11 files modified
docs/bin/memaslap.rst (+9/-7)
docs/hashkit_create.rst (+14/-4)
docs/hashkit_functions.rst (+1/-2)
docs/hashkit_value.rst (+2/-2)
docs/libhashkit.rst (+2/-1)
docs/libmemcached.rst (+13/-13)
docs/libmemcached_configuration.rst (+1/-1)
docs/libmemcached_examples.rst (+16/-8)
docs/libmemcachedutil.rst (+6/-7)
docs/memcached_analyze.rst (+14/-14)
docs/memcached_append.rst (+42/-36)
To merge this branch: bzr merge lp:~kent/libmemcached/KBDocs4
Reviewer Review Type Date Requested Status
Libmemcached-developers Pending
Review via email: mp+65843@code.launchpad.net

Description of the change

Updates to formatting of first ~dozen .rst files.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'docs/bin/memaslap.rst'
--- docs/bin/memaslap.rst 2011-06-24 19:25:01 +0000
+++ docs/bin/memaslap.rst 2011-06-24 22:27:28 +0000
@@ -18,12 +18,14 @@
18-----------18-----------
1919
2020
21memaslap is a load generation and benchmark tool for :program:`memcached()`21:program:`memaslap` is a load generation and benchmark tool for memcached
22servers. It generates configurable workload such as threads, concurrencies, connections, run time, overwrite, miss rate, key size, value size, get/set proportion, expected throughput, and so on. Furthermore, it also testss data22servers. It generates configurable workload such as threads, concurrencies,
23connections, run time, overwrite, miss rate, key size, value size, get/set
24proportion, expected throughput, and so on. Furthermore, it also testss data
23verification, expire-time verification, UDP, binary protocol, facebook test,25verification, expire-time verification, UDP, binary protocol, facebook test,
24replication test, multi-get and reconnection, etc.26replication test, multi-get and reconnection, etc.
2527
26Memslap manages network connections like memcached with28Memaslap manages network connections like memcached with
27libevent. Each thread of memaslap is bound with a CPU core, all29libevent. Each thread of memaslap is bound with a CPU core, all
28the threads don't communicate with each other, and there are several socket30the threads don't communicate with each other, and there are several socket
29connections in each thread. Each connection keeps key size distribution,31connections in each thread. Each connection keeps key size distribution,
@@ -194,9 +196,9 @@
194196
195Because each thread is self-governed, memaslap can assign197Because each thread is self-governed, memaslap can assign
196different threads to handle different memcached servers. This is just one of198different threads to handle different memcached servers. This is just one of
197the ways in which memaslap testss multiple servers. The only199the ways in which memaslap tests multiple servers. The only
198limitation is that the number of servers cannot be greater than the number200limitation is that the number of servers cannot be greater than the number
199of threads. The other way to tests multiple servers is for replication201of threads. The other way to test multiple servers is for replication
200test. Each concurrency has one socket connection to each memcached server.202test. Each concurrency has one socket connection to each memcached server.
201For the implementation, memaslap can set some objects to one203For the implementation, memaslap can set some objects to one
202memcached server, and get these objects from the other servers.204memcached server, and get these objects from the other servers.
@@ -208,7 +210,7 @@
208Memslap testss both the ASCII protocol and binary protocol,210Memslap testss both the ASCII protocol and binary protocol,
209but it runs on the ASCII protocol by default. 211but it runs on the ASCII protocol by default.
210Memslap by default runs on the TCP protocol, but it also212Memslap by default runs on the TCP protocol, but it also
211testss UDP. Because UDP is unreliable, dropped packages and out-of-order213tests UDP. Because UDP is unreliable, dropped packages and out-of-order
212packages may occur. Memslap creates a memory buffer to handle214packages may occur. Memslap creates a memory buffer to handle
213these problems. Memslap tries to read all the response data of215these problems. Memslap tries to read all the response data of
214one command from the server and reorders the response data. If some packages216one command from the server and reorders the response data. If some packages
@@ -314,7 +316,7 @@
314concurrency is 16. The user can use “—threads” and “--concurrency” to316concurrency is 16. The user can use “—threads” and “--concurrency” to
315specify these variables.317specify these variables.
316318
317If the system testss setting CPU affinity and the number of threads319If the system tests setting CPU affinity and the number of threads
318specified by the user is greater than 1, memaslap will try to320specified by the user is greater than 1, memaslap will try to
319bind each thread to a different CPU core. So if you want to get the best321bind each thread to a different CPU core. So if you want to get the best
320performance memaslap, it is better to specify the number of322performance memaslap, it is better to specify the number of
321323
=== modified file 'docs/hashkit_create.rst'
--- docs/hashkit_create.rst 2011-06-19 08:25:48 +0000
+++ docs/hashkit_create.rst 2011-06-24 22:27:28 +0000
@@ -48,12 +48,12 @@
48------------48------------
4949
5050
51:c:func:`hashkit_create()` and :c:func:`hashkit_clone()` will return NULL on failure or51:c:func:`hashkit_create()` and :c:func:`hashkit_clone()` will return NULL on
52non-NULL on success.52failure or non-NULL on success.
5353
54:c:func:`hashkit_is_allocated()` returns true if the memory for the hashkit54:c:func:`hashkit_is_allocated()` returns true if the memory for the hashkit
55object was allocated inside of :c:func:`hashkit_create()` or :c:func:`hashkit_clone()`,55object was allocated inside of :c:fucn:`hashkit_create()` or
56otherwise it is false and was user-supplied memory.56:c:func:`hashkit_clone()`, otherwise it is false and was user-supplied memory.
5757
5858
59----59----
@@ -63,3 +63,13 @@
6363
64To find out more information please check:64To find out more information please check:
65`http://libmemcached.org/ <http://libmemcached.org/>`_65`http://libmemcached.org/ <http://libmemcached.org/>`_
66
67
68
69--------
70SEE ALSO
71--------
72
73
74:manpage:`hashkit_create(3)` :manpage:`hashkit_value(3)` :manpage:`hashkit_set_hash_fn(3)`
75
6676
=== modified file 'docs/hashkit_functions.rst'
--- docs/hashkit_functions.rst 2011-05-24 01:36:22 +0000
+++ docs/hashkit_functions.rst 2011-06-24 22:27:28 +0000
@@ -71,6 +71,5 @@
71--------71--------
7272
7373
74hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)74:manpage:`hashkit_create(3)` :manpage:`hashkit_value(3)` :manpage:`hashkit_set_hash_fn(3)` :manpage:`hashkit_set_continuum_hash_fn(3)`
75hashkit_set_continuum_hash_fn(3)
7675
7776
=== modified file 'docs/hashkit_value.rst'
--- docs/hashkit_value.rst 2011-05-24 01:36:22 +0000
+++ docs/hashkit_value.rst 2011-06-24 22:27:28 +0000
@@ -26,7 +26,7 @@
26-----------26-----------
2727
2828
29The hashkit_value() function generates a 32-bit hash value from the29The :c:func:`hashkit_value()` function generates a 32-bit hash value from the
30given key and key_length. The hash argument is an initialized hashkit30given key and key_length. The hash argument is an initialized hashkit
31object, and distribution type and hash function is used from this31object, and distribution type and hash function is used from this
32object while generating the value.32object while generating the value.
@@ -54,5 +54,5 @@
54--------54--------
5555
5656
57hashkit_create(3) hashkit_set_distribution(3) hashkit_set_hash_fn(3)57:manpage:`hashkit_create(3)` :manpage:`hashkit_set_distribution(3)` :manpage:`hashkit_set_hash_fn(3)`
5858
5959
=== modified file 'docs/libhashkit.rst'
--- docs/libhashkit.rst 2011-06-19 02:44:48 +0000
+++ docs/libhashkit.rst 2011-06-24 22:27:28 +0000
@@ -15,7 +15,8 @@
15DESCRIPTION15DESCRIPTION
16-----------16-----------
1717
18:program:'libhashkit' is a small and thread-safe client library that provides a collection of useful hashing algorithm. libhashkit is distributed with libmemcached.18
19libhashkit is a small and thread-safe client library that provides a collection of useful hashing algorithm. libhashkit is distributed with libmemcached.
1920
2021
21----22----
2223
=== modified file 'docs/libmemcached.rst'
--- docs/libmemcached.rst 2011-06-19 02:44:48 +0000
+++ docs/libmemcached.rst 2011-06-24 22:27:28 +0000
@@ -33,7 +33,7 @@
33system, generic in nature, but intended for use in speeding up dynamic web33system, generic in nature, but intended for use in speeding up dynamic web
34applications by alleviating database load." `http://danga.com/memcached/ <http://danga.com/memcached/>`_34applications by alleviating database load." `http://danga.com/memcached/ <http://danga.com/memcached/>`_
3535
36\ **libmemcached**\ is a small, thread-safe client library for the36:program:`libmemcached` is a small, thread-safe client library for the
37memcached protocol. The code has all been written to allow37memcached protocol. The code has all been written to allow
38for both web and embedded usage. It handles the work behind routing38for both web and embedded usage. It handles the work behind routing
39individual keys to specific servers specified by the developer (and values are39individual keys to specific servers specified by the developer (and values are
@@ -41,16 +41,17 @@
41a modular and consistent method of object distribution.41a modular and consistent method of object distribution.
4242
43There are multiple implemented routing and hashing methods. See the43There are multiple implemented routing and hashing methods. See the
44memcached_behavior_set() manpage for more information.44:c:func:`memcached_behavior_set()` manpage for more information.
4545
46All operations are performed against a :c:type:`memcached_st` structure.46All operations are performed against a :c:type:`memcached_st` structure.
47These structures can either be dynamically allocated or statically47These structures can either be dynamically allocated or statically
48allocated and then initialized by memcached_create(). Functions have been48allocated and then initialized by :c:func:`memcached_create()`. Functions have
49written in order to encapsulate the :c:type:`memcached_st` . It is not49been written in order to encapsulate the :c:type:`memcached_st`. It is not
50recommended that you operate directly against the structure.50recommended that you operate directly against the structure.
5151
52Nearly all functions return a :c:type:`memcached_return_t`\ value.52Nearly all functions return a :c:type:`memcached_return_t` value.
53This value can be translated to a printable string with memcached_strerror(3).53This value can be translated to a printable string with
54:c:type:`memcached_strerror()`.
5455
55Objects are stored on servers by hashing keys. The hash value maps the key to a particular server. All clients understand how this hashing works, so it is possibly to reliably both push data to a server and retrieve data from a server.56Objects are stored on servers by hashing keys. The hash value maps the key to a particular server. All clients understand how this hashing works, so it is possibly to reliably both push data to a server and retrieve data from a server.
5657
@@ -58,7 +59,7 @@
5859
59Namespaces are supported, and can be used to partition caches so that multiple applications can use the same memcached servers.60Namespaces are supported, and can be used to partition caches so that multiple applications can use the same memcached servers.
6061
61:c:type:`memcached_st` structures are thread-safe, but each thread must62:c:type:`memcached_st` structures are thread-safe, but each thread must
62contain its own structure (that is, if you want to share these among63contain its own structure (that is, if you want to share these among
63threads you must provide your own locking). No global variables are64threads you must provide your own locking). No global variables are
64used in this library.65used in this library.
@@ -70,7 +71,7 @@
70AC_SUBST(DEPS_CFLAGS)71AC_SUBST(DEPS_CFLAGS)
71AC_SUBST(DEPS_LIBS)72AC_SUBST(DEPS_LIBS)
7273
73Some features of the library must be enabled through memcached_behavior_set().74Some features of the library must be enabled through :c:func:`memcached_behavior_set()`.
7475
75Hope you enjoy it!76Hope you enjoy it!
7677
@@ -131,10 +132,9 @@
131132
132133
133When using threads or forked processes it is important to keep one instance134When using threads or forked processes it is important to keep one instance
134of :c:type:`memcached_st` per process or thread. Without creating your own locking135of :c:type:`memcached_st` per process or thread. Without creating your own
135structures you can not share a single :c:type:`memcached_st`. However, you can call136locking structures you can not share a single :c:type:`memcached_st`. However,
136memcached_quit(3) on a :c:type:`memcached_st` and then use the resulting cloned137you can call :c:func:`memcached_quit()` on a :c:type:`memcached_st` and then use the resulting cloned structure.
137structure.
138138
139139
140----140----
141141
=== modified file 'docs/libmemcached_configuration.rst'
--- docs/libmemcached_configuration.rst 2011-06-24 19:25:01 +0000
+++ docs/libmemcached_configuration.rst 2011-06-24 22:27:28 +0000
@@ -185,7 +185,7 @@
185------185------
186186
187187
188memcached() returns a pointer to the memcached_st that was188:c:func:`memcached()` returns a pointer to the memcached_st that was
189created (or initialized). On an allocation failure, it returns NULL.189created (or initialized). On an allocation failure, it returns NULL.
190190
191191
192192
=== modified file 'docs/libmemcached_examples.rst'
--- docs/libmemcached_examples.rst 2011-05-24 01:36:22 +0000
+++ docs/libmemcached_examples.rst 2011-06-24 22:27:28 +0000
@@ -21,6 +21,7 @@
2121
22.. code-block:: c22.. code-block:: c
2323
24Configuring with servers::
24 const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com"25 const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com"
25 memcached_st *memc= memcached(config_string, strlen(config_string);26 memcached_st *memc= memcached(config_string, strlen(config_string);
26 {27 {
@@ -29,7 +30,8 @@
29 memcached_free(memc);30 memcached_free(memc);
3031
3132
32In the above code you create a \ ``memcached_st``\ object with three server by making use of :manpage:`memcached_create_with_options(3)`.33In the above code you create a :c:type:`memcached_st` object with three server
34by making use of :c:func:`memcached_create_with_options()`.
3335
3436
35--------------------------37--------------------------
@@ -40,6 +42,8 @@
4042
41.. code-block:: c43.. code-block:: c
4244
45Creating a pool of Servers::
46
43 const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com"; 47 const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com";
44 48
45 memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));49 memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));
@@ -62,10 +66,10 @@
6266
6367
6468
65In the above code you create a \ ``memcached_pool_st``\ object with three69In the above code you create a :c:type:`memcached_pool_st` object with three
66server by making use of :manpage:`memcached_pool(3)`.70server by making use of :c:func:`memcached_pool()`.
6771
68When memcached_pool_destroy() all memory will be released that is associated72When :c:func:`memcached_pool_destroy()` all memory will be released that is associated
69with the pool.73with the pool.
7074
7175
@@ -77,6 +81,8 @@
7781
78.. code-block:: c82.. code-block:: c
7983
84Adding a value to the Server::
85
80 char *key= "foo";86 char *key= "foo";
81 char *value= "value";87 char *value= "value";
8288
@@ -99,19 +105,21 @@
99105
100.. code-block:: c106.. code-block:: c
101107
108Fetching multiple Values::
109
102 memcached_return_t rc;110 memcached_return_t rc;
103 char *keys[]= {"fudge", "son", "food"};111 char *keys[]= {"fudge", "son", "food"};
104 size_t key_length[]= {5, 3, 4};112 size_t key_length[]= {5, 3, 4};
105 unsigned int x;113 unsigned int x;
106 uint32_t flags;114 uint32_t flags;
107 115
108 char return_key[MEMCACHED_MAX_KEY];116 char return_key[MEMCACHED_MAX_KEY];
109 size_t return_key_length;117 size_t return_key_length;
110 char *return_value;118 char *return_value;
111 size_t return_value_length;119 size_t return_value_length;
112 120
113 rc= memcached_mget(memc, keys, key_length, 3);121 rc= memcached_mget(memc, keys, key_length, 3);
114 122
115 x= 0;123 x= 0;
116 while ((return_value= memcached_fetch(memc, return_key, &return_key_length, 124 while ((return_value= memcached_fetch(memc, return_key, &return_key_length,
117 &return_value_length, &flags, &rc)))125 &return_value_length, &flags, &rc)))
@@ -122,7 +130,7 @@
122130
123131
124Notice that you freed values returned from memcached_fetch(). The define132Notice that you freed values returned from memcached_fetch(). The define
125\ ``MEMCACHED_MAX_KEY``\ is provided for usage.133:c:type:`MEMCACHED_MAX_KEY` is provided for usage.
126134
127135
128136
129137
=== modified file 'docs/libmemcachedutil.rst'
--- docs/libmemcachedutil.rst 2011-05-24 01:36:22 +0000
+++ docs/libmemcachedutil.rst 2011-06-24 22:27:28 +0000
@@ -23,8 +23,8 @@
23-----------23-----------
2424
2525
26\ **libmemcachedutil**\ is a small and thread-safe client library that provides26:program:`libmemcachedutil` is a small and thread-safe client library that
27extra functionality built on top of \ **libmemcached**\ .27provides extra functionality built on top of :program:`libmemcached`.
2828
2929
30-------30-------
@@ -32,10 +32,10 @@
32-------32-------
3333
3434
35Do not try to access an instance of \ ``memcached_st``\ from multiple threads35Do not try to access an instance of :c:type:`memcached_st` from multiple threads
36at the same time. If you want to access memcached from multiple threads36at the same time. If you want to access memcached from multiple threads
37you should either clone the \ ``memcached_st``\ , or use the memcached pool37you should either clone the :c:type:`memcached_st`, or use the memcached pool
38implementation. see memcached_pool_create(3).38implementation. see :c:func:`memcached_pool_create()`.
3939
4040
41----41----
@@ -52,6 +52,5 @@
52--------52--------
5353
5454
55:manpage:`libmemcached(3)`55:manpage:`libmemcached(3)` :manpage:`memcached_pool_create(3)` :manpage:`memcached_pool_destroy(3)` :manpage:`memcached_pool_pop(3)` :manpage:`memcached_pool_push(3)`
56:manpage:`memcached_pool_create(3)` :manpage:`memcached_pool_destroy(3)` :manpage:`memcached_pool_pop(3)` :manpage:`memcached_pool_push(3)`
5756
5857
=== modified file 'docs/memcached_analyze.rst'
--- docs/memcached_analyze.rst 2011-05-24 01:36:22 +0000
+++ docs/memcached_analyze.rst 2011-06-24 22:27:28 +0000
@@ -24,16 +24,16 @@
24-----------24-----------
2525
2626
27libmemcached(3) has the ability to query a memcached server (or collection27:program:`libmemcached` has the ability to query a memcached server (or
28of servers) for their current state. Queries to find state return a28collection of servers) for their current state. Queries to find state return a
29\ ``memcached_analysis_st``\ structure. You are responsible for freeing this structure.29:c:type:`memcached_analysis_st` structure. You are responsible for freeing this structure.
3030
31memcached_analyze() analyzes useful information based on the provided servers31:c:func:`memcached_analyze()` analyzes useful information based on the
32and sets the result to the \ ``memcached_analysis_st``\ structure. The return value32provided servers and sets the result to the :c:type:`memcached_analysis_st`
33must be freed by the calling application.33structure. The return value must be freed by the calling application.
3434
35A command line tool, memstat(1) with the option --analyze, is provided so that35A command line tool, :c:func:`memstat()` with the option :option:`--analyze`,
36you do not have to write an application to use this method.36is provided so that you do not have to write an application to use this method.
3737
3838
39------39------
@@ -41,11 +41,11 @@
41------41------
4242
4343
44A pointer to the allocated \ ``memcached_analysis_st``\ structure on success and44A pointer to the allocated :c:type:`memcached_analysis_st` structure on
45a NULL pointer on failure. You may inspect the error detail by checking the45success and a NULL pointer on failure. You may inspect the error detail by
46\ ``memcached_return_t``\ value.46checking the :c:type:`memcached_return_t` value.
4747
48Any method returning a \ ``memcached_analysis_st``\ expects you to free the48Any method returning a :c:type:`memcached_analysis_st` expects you to free the
49memory allocated for it.49memory allocated for it.
5050
5151
5252
=== modified file 'docs/memcached_append.rst'
--- docs/memcached_append.rst 2011-05-24 01:36:22 +0000
+++ docs/memcached_append.rst 2011-06-24 22:27:28 +0000
@@ -30,43 +30,48 @@
30-----------30-----------
3131
3232
33memcached_prepend() and memcached_append are used to 33:c:func:`memcached_prepend()` and memcached_append are used to
34modify information on a server. All methods take a key, and its length to34modify information on a server. All methods take a key, and its length to
35store the object. Keys are currently limited to 250 characters when using either a version of memcached(1) which is 1.4 or below, or when using the text protocol.35store the object. Keys are currently limited to 250 characters when using
36You must supply both a value and a length. Optionally you36either a version of memcached which is 1.4 or below, or when using the text
37protocol. You must supply both a value and a length. Optionally you
37may test an expiration time for the object and a 16 byte value (it is38may test an expiration time for the object and a 16 byte value (it is
38meant to be used as a bitmap). "flags" is a 4byte space that is stored alongside of the main value. Many sub libraries make use of this field, so in most cases users should avoid making use of it.39meant to be used as a bitmap). "flags" is a 4byte space that is stored
3940alongside of the main value. Many sub libraries make use of this field,
40memcached_prepend() places a segment of data before the last piece of data 41so in most cases users should avoid making use of it.
41stored. Currently expiration and key are not used in the server.42
4243:c:func:`memcached_prepend()` places a segment of data before the last piece
43memcached_append() places a segment of data at the end of the last piece of 44of data stored. Currently expiration and key are not used in the server.
44data stored. Currently expiration and key are not used in the server.45
4546:c:func:`memcached_append()` places a segment of data at the end of the last
46memcached_prepend_by_key() and memcached_append_by_key_by_key(,47piece of data stored. Currently expiration and key are not used in the server.
47methods both behave in a similar method as the non key 48
48methods. The difference is that they use their group_key parameter to map49:c:func:`memcached_prepend_by_key()` and
49objects to particular servers.50:c:func:`memcached_append_by_key_by_key()` methods both behave in a similar
5051method as the non key methods. The difference is that they use their
51If you are looking for performance, memcached_set() with non-blocking IO is 52group_key parameter to map objects to particular servers.
52the fastest way to store data on the server.53
5354If you are looking for performance, :c:func:`memcached_set()` with non-blocking
54All of the above functions are testsed with the \ ``MEMCACHED_BEHAVIOR_USE_UDP``\ 55IO is the fastest way to store data on the server.
55behavior enabled. However, when using these operations with this behavior on, there 56
56are limits to the size of the payload being sent to the server. The reason for 57All of the above functions are testsed with the
57these limits is that the Memcached Server does not allow multi-datagram requests58:c:type:`MEMCACHED_BEHAVIOR_USE_UDP` behavior enabled. However, when using
59these operations with this behavior on, there are limits to the size of the
60payload being sent to the server. The reason for these limits is that the
61Memcached Server does not allow multi-datagram requests
58and the current server implementation sets a datagram size to 1400 bytes. Due 62and the current server implementation sets a datagram size to 1400 bytes. Due
59to protocol overhead, the actual limit of the user supplied data is less than 63to protocol overhead, the actual limit of the user supplied data is less than
601400 bytes and depends on the protocol in use as, well as the operation being 641400 bytes and depends on the protocol in use as, well as the operation being
61executed. When running with the binary protocol, \ `` MEMCACHED_BEHAVIOR_BINARY_PROTOCOL``\ , 65executed. When running with the binary protocol,
62the size of the key,value, flags and expiry combined may not exceed 1368 bytes. 66:c:type:`MEMCACHED_BEHAVIOR_BINARY_PROTOCOL`, the size of the key,value,
63When running with the ASCII protocol, the exact limit fluctuates depending on 67flags and expiry combined may not exceed 1368 bytes. When running with the
64which function is being executed and whether the function is a cas operation 68ASCII protocol, the exact limit fluctuates depending on which function is
65or not. For non-cas ASCII set operations, there are at least 1335 bytes available 69being executed and whether the function is a cas operation or not. For
66to split among the key, key_prefix, and value; for cas ASCII operations there are 70non-cas ASCII set operations, there are at least 1335 bytes available
67at least 1318 bytes available to split among the key, key_prefix and value. If the71to split among the key, key_prefix, and value; for cas ASCII operations
68total size of the command, including overhead, exceeds 1400 bytes, a \ ``MEMCACHED_WRITE_FAILURE``\ 72there are at least 1318 bytes available to split among the key, key_prefix
69will be returned.73and value. If the total size of the command, including overhead, exceeds
741400 bytes, a :c:type:`MEMCACHED_WRITE_FAILURE` will be returned.
7075
7176
72------77------
@@ -74,9 +79,10 @@
74------79------
7580
7681
77All methods return a value of type \ ``memcached_return_t``\ .82All methods return a value of type :c:type:`memcached_return_t`.
78On success the value will be \ ``MEMCACHED_SUCCESS``\ .83On success the value will be :c:type:`MEMCACHED_SUCCESS`.
79Use memcached_strerror() to translate this value to a printable string.84Use :c:func:`memcached_strerror()` to translate this value to a printable
85string.
8086
8187
82----88----
@@ -93,5 +99,5 @@
93--------99--------
94100
95101
96memcached(1) libmemached(3) memcached_strerror(3) memcached_set(3) memcached_add(3) memcached_cas(3) memcached_replace(3)102:manpage:`memcached(1)` :manpage:`libmemached(3)` :manpage:`memcached_strerror(3)` :manpage:`memcached_set(3)` :manpage:`memcached_add(3)` :manpage:`memcached_cas(3)` :manpage:`memcached_replace(3)`
97103

Subscribers

People subscribed via source and target branches

to all changes: