In memory storage with array.js
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
storages
test
.gitignore
History.md
Makefile
README.md
index.js
npm-debug.log
package.json

README.md

Carcass Memoray

Storage plugin for Carcass using ArrayJS

Methods

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

Example

/!\ 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);

Test

make test