model-redis-sync
redis sync adaptor for use with node-model.
Installation
npm install model-redis-sync
Example
var model = var redisOptions = host: '...' port: '...'var redisSync = redisOptions var Post = Postsync = redisSync var post = title: "My Awesome Post" body: "Is awesome"post
modelName
is used to determine the redis key. In this case it will be Post:uuid
Tests
npm test