This tutorial assumes you have installed libcouchbase on your systems, following the installation instructions in the Getting Started section of this guide. Because the approach for building a program based on libcouchbase may vary between Linux/Mac OS and Windows, this tutorial will focus on the components of the program rather than how to build it.
The libcouchbase is written in C and can be integrated in various ways with your application. The simplest integration scenario is when your application is written in a scripting language (supported by a Couchbase client library) that already has a libcouchbase wrapper. Couchbase has built and maintains following libcouchbase-based libraries:
Users of these libraries automatically get an API, which looks natural for their platform, so that it doesn't require knowledge of libcouchbase APIs. This tutorial is mostly about two other use cases:
Add libcouchbase into an existing application to implement persistence layer. This section will contain two parts: first we will create a simple echo server written using libev library. Second, we will show how to persist each message going through the server to Couchbase.
Get complete code here: https://github.com/couchbaselabs/libev-couchbase-example
Build applications around libcouchbase. Here we'll show how to build a proxy server for regular memcached clients. Building this proxy server is just like building a moxi server, but the proxy server will be more limited more limited in abilities.
Get complete code here: https://github.com/couchbaselabs/libcouchbase-proxy-sample