The Ruby Client Library supports the core Couchbase API methods as direct calls to the Couchbase server through the API call. These direct methods can be used to provide instant storage, retrieval and updating of Couchbase key/value pairs.
For example, the following fragment stores and retrieves a single key/value pair:
couchbase.set("foo", 3600, value); foo = couchbase.get("foo");
In the example code above, the client will wait until a response has been received from one of the configured Couchbase servers before returning the required value or an exception.