Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
In memory storage with array.js
JavaScript
Branch: master

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

Something went wrong with that request. Please try again.