Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (23 sloc) 0.522 kb

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

Jump to Line
Something went wrong with that request. Please try again.