projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
docs: m2r BUGS.md issues.rst
[awesomized/libmemcached]
/
docs
/
source
/
libmemcached
/
examples.rst
diff --git
a/docs/source/libmemcached/examples.rst
b/docs/source/libmemcached/examples.rst
index 69aaf24bd415edb3bd7a07938744ef75a343ef87..dfd7fa251542d5662a0695e3de0e1ab62ec30dea 100644
(file)
--- a/
docs/source/libmemcached/examples.rst
+++ b/
docs/source/libmemcached/examples.rst
@@
-6,9
+6,8
@@
Examples for libmemcached
DESCRIPTION
-----------
DESCRIPTION
-----------
-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.
Connecting to servers
---------------------
Connecting to servers
---------------------
@@
-25,15
+24,18
@@
Connecting to servers
}
memcached_free(memc);
}
memcached_free(memc);
-In the above code you create a
:type:`memcached_st` object with three server
-
by making use of :func:
`memcached_create`.
+In the above code you create a
`memcached_st` object with three server by making
+
use of
`memcached_create`.
Creating a pool of servers
--------------------------
.. code-block:: c
Creating a pool of servers
--------------------------
.. code-block:: c
- const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com";
+ 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_pool_st* pool= memcached_pool(config_string, strlen(config_string));
@@
-53,10
+55,10
@@
Creating a pool of servers
*/
memcached_pool_destroy(pool);
*/
memcached_pool_destroy(pool);
-In the above code you create a
:type:`memcached_pool_st` object with three
-
server by making use of :func:
`memcached_pool()`.
+In the above code you create a
`memcached_pool_st` object with three server by
+
making use of
`memcached_pool()`.
-When
:func:
`memcached_pool_destroy()` all memory will be released that is associated
+When `memcached_pool_destroy()` all memory will be released that is associated
with the pool.
Adding a value to the server
with the pool.
Adding a value to the server