bucket.upsert('name-list', ["revin"], function(err, result) {
if (err) throw err;
console.log(result);
});
bucket.listAppend('name-list', "xiaoming", function(err, result) {
if (err) throw err;
console.log(result);
});
bucket.listPrepend('name-list', "xiaozhang", function(err, result) {
if (err) throw err;
console.log(result);
});
bucket.listGet('name-list', 0, function(err, result) {
if (err) throw err;
console.log(result.value);
});
bucket.listSize('name-list', function(err, result) {
if (err) throw err;
console.log(result.value);
});
bucket.listSet('name-list', 0 , "xiaowang" ,function(err, result) {
if (err) throw err;
console.log(result);
});