0.1.0 • Published 9 years ago

pd-redis-record-field-randomize v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

pd-redis-record-field-randomize

To enable pd-redis-record model creating records with fields of random strings

var Message = modelMaker('message', ['id']);
randomize(Message, ['id']);

Message.create({
  content : 'Hello'
}).then(function(profile){
  //profile => { id: '4yQS-8_b', content : 'Hello' }
  // id generated a random string (not necessarily be '4yQS-8_b')
});