-
Notifications
You must be signed in to change notification settings - Fork 12
Store token in Redis and Memcache or other objects #5
Conversation
How about squashing all these commits that introduce a single new feature into a single one commit, that stands alone? |
Ok, ok, but why? Just to understand... |
For many reasons. There is a couple of commits there that just represent a mistake being corrected. They don't really belong to this feature. Other commits only represent you getting things to work or to look alright (such as docs). In other words: one-commit-per-feature keeps the history clean. I don't (nor anyone else does) care if in the middle of your work you changed your mind or found something not right or that could be done better. It's just that mantra “Commit Often, Perfect Later, Publish Once”. But, equally important, it helps code reviewing and it really, really helps bisecting (hence debugging). I hope you agree with me 😃 |
Ohhhh ok! I agree :D Please close this PR. I'll make it better 2015-04-07 11:01 GMT-03:00 Pablo Aguiar notifications@github.com:
|
Great! Luckily, there's no need to close/reopen, just force-push to this same branch (unfortunately it's master, but fortunately it's your master) and this PR will be updated (kudos to GitHub). |
Also, it would be nice to avoid the dependency of redis. Or at least make it optional. People may want to use different services like memcached or filesystem. The default implementation could have a simple, in-memory storage. Additional storages could be available as external packages or in a contrib module. |
Tests could be improved (but I don't know how) and squashing is returning a lot of conflicts... But it's working :) |
I can drop by and give you a hand, if you'd like :) |
I'll try a bit more |
Please take a look @scorphus |
Store token in Redis and Memcache or other objects
I didn't have the opportunity to look into your latest changes but, had I done so prior to the merge, all I'd have said is “Nice job, @dmvieira! Thanks!” 👍 |
\o/ Thanks for all help ;) 2015-04-13 11:42 GMT-03:00 Enrico Batista da Luz notifications@github.com:
|
Now passing an object with 'get' and 'set' attributes you can store or retrieve a token.
This object can be a Redis, Memcache or your custom object.