交易
内存对象的事务支持(测试版)
开始
内存对象的事务支持。 为了稳健性和性能
锁定/提交/回滚内存对象就像访问传统数据库中的数据
var T = require('transaction');
var Q = require('q');
var obj = {simple : 1, compound : {key : 1}};
// Make object transactionable
T.transactionable(obj);
// You can also specify which keys to include or exclude
// Object attributes which cannot be deepcopyed must be excluded
// (like reference to outer resources or circular refer
1