carcass-memoray

Memory storage with Array.js for Carcass

npm install carcass-memoray
4 downloads in the last month

Carcass Memoray

Storage plugin for Carcass using ArrayJS

Methods

  • put(data, cb)
  • find(data, cb)
  • del(data, cb)

Example

var storage = carcass.storages.memoray({
    id: 'model'
});

var builder = carcass.factories.Model({
    attributes: {
        id: {},
        username : {}
    },
    storage: storage
});

builder.use(carcass.plugins.modelSync);

Test

make test

npm loves you