bustle / radredis

Basic redis backed object modeling for Node.
19 stars 3 forks source link

switch to using event emitter for lifecycle hooks #3

Closed tsiege closed 9 years ago

tsiege commented 9 years ago

This feels more like the node way

tsiege commented 9 years ago

@axel what do you think?

axel commented 9 years ago

We could emit an event after the callback code. The thing about the current approach is that the callback code is run synchronously so that changes can be made to the model instance before it's persisted.