-.. highlight:: perl
+========
+Examples
+========
+Examples for libmemcached
-****
-NAME
-****
-
-
-libmemcached_examples - 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.
+------------------------------
Creating and Freeing structure
-==============================
-
+------------------------------
-.. code-block:: perl
+.. code-block:: c
memcached_st *memc;
memcached_return_t rc;
finished.
+---------------------
Connecting to servers
-=====================
+---------------------
-.. code-block:: perl
+.. code-block:: c
memcached_server_st *servers;
memcached_st *memc= memcached_create(NULL);
structures.
+----------------------------
Adding a value to the server
-============================
+----------------------------
-.. code-block:: perl
+.. code-block:: c
char *key= "foo";
char *value;
It is best practice to always look at the return value of any operation.
+------------------------
Fetching multiple values
-========================
+------------------------
-.. code-block:: perl
+.. code-block:: c
memcached_return_t rc;
char *keys[]= {"fudge", "son", "food"};
-****
+----
HOME
-****
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-******
-AUTHOR
-******
-
-
-Brian Aker, <brian@tangent.org>
-
-
-********
+--------
SEE ALSO
-********
+--------
-memcached(1)
+:manpage:`memcached(1)`