append 与 prepend操作
bucket.upsert('testString', "aa", function(err, result) {
if (err) throw err;
console.log(result);
});
追加数据
前面追加数据
获取数据
Last updated
bucket.upsert('testString', "aa", function(err, result) {
if (err) throw err;
console.log(result);
});
Last updated
bucket.append('testString', "bb", function(err, result) {
if (err) throw err;
console.log(result);
});bucket.prepend('testString', "cc", function(err, result) {
if (err) throw err;
console.log(result);
});bucket.get('testString', function(err, result) {
if (err) throw err;
console.log(result.value);
});ccaabb