Storage plugin for Carcass using ArrayJS
- put(data, cb)
- find(data, cb)
- del(data, cb)
/!\ Don't forget to require('carcass-memoray') in the index.js carcass root file.
var storage = carcass.storages.memoray({
id: 'model'
});
var builder = carcass.factories.Model({
attributes: {
id: {},
username : {}
},
storage: storage
});
builder.use(carcass.plugins.modelSync);
make test