Couchbase node.js Client Library

Version 1 by ingenthr
on Feb 14, 2012 00:10.

compared with
Version 2 by ronkorving
on Feb 14, 2012 20:50.

This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
h1. Design goals

h2. API

While libcouchbase exposes the binary Memcached protocol and API, the client SDKs (and therefore also the Node.js SDK) should reflect the well-known Memcached protocol, which resembles the ASCII API.

h2. Error handling

Asynchronous operations, where the user provides a callback function, should always reserve the first argument for errors (Error object). The implication is that in these cases, we do not throw exceptions. However, if the user omitted a callback function, (synchronous) errors can only be caught by throwing an exception.

This is common practice in many Node.js libraries, including a lot of APIs internal to Node.js itself.