modella-memory
Memory persistence layer for Modella. Useful for development or as a reference implementation for Modella storage plugins.
Installation
npm install modella-memory
Example
var modella = ;var memory = ; var User = ; User;
API
Model.find(id, fn(err, model))
Find model with given id
.
Model.all(fn(err, collection))
Find all models.