bucket.upsert('name-queue', ["revin"], function(err, result) {
if (err) throw err;
console.log(result);
});
bucket.queuePush('name-queue', "xiaowang", function(err, result) {
if (err) throw err;
console.log(result);
});
bucket.queueSize('name-queue', function(err, result) {
if (err) throw err;
console.log(result.value);
});
bucket.queuePop('name-queue', function(err, result) {
if (err) throw err;
console.log(result.value);
});