X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fsource%2Flibmemcached%2Fexamples.rst;h=dfd7fa251542d5662a0695e3de0e1ab62ec30dea;hb=a08ebebc7f7f2d86eb13151fb230cbfcd17dc090;hp=69aaf24bd415edb3bd7a07938744ef75a343ef87;hpb=28c4d79e109e11d7d2a9f3189de57da28302ec68;p=awesomized%2Flibmemcached diff --git a/docs/source/libmemcached/examples.rst b/docs/source/libmemcached/examples.rst index 69aaf24b..dfd7fa25 100644 --- a/docs/source/libmemcached/examples.rst +++ b/docs/source/libmemcached/examples.rst @@ -6,9 +6,8 @@ Examples for libmemcached 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 --------------------- @@ -25,15 +24,18 @@ Connecting to servers } 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 - 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)); @@ -53,10 +55,10 @@ Creating a pool of servers */ 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