Any value you want to store in Couchbase Server will be stored as a document or as a pure byte string. In the case of JSON documents, the JSON syntax enables you to provide context and structure for the data. The following applies to values in Couchbase Server:
In general, values have no implied meaning when stored in the server.
Integers have implicit value for particular operations, namely incrementing and decrementing. This means Couchbase Server recognizes integers as values that can be incremented and decremented.
Strings, or serialized objects can be stored.
Documents stored in memcached buckets can be up to 1 MB; values stored in Couchbase buckets can be up to 20 MB.
In general it is to your advantage to keep any documents as small as possible; this way, they require less RAM, they will require less network bandwidth, and by using smaller values Couchbase Server can better distribute the information across nodes.