5 ms·
I actually like the redis-objects gem, which maps redis structures to ruby objects. https://github.com/nateware/redis-objects https://github.com/nateware/redis
by andrewvc 16y ago
I actually like the redis-objects gem, which maps redis structures to ruby objects.
https://github.com/nateware/redis-objects https://github.com/nateware/redis-objects
- Jim_Neath 16y agoI've never used redis-objects but it does look interesting. I'll have a play around with it tonight and update the post. Thanks for the heads up. Edit: updated.
- michaeldhopkins 16y agoWould you please explain why you prefer it to rb-redis?
- andrewvc 16y agoredis-rb maps redis commands into the ruby namespace. redis-objects is built on top of redis-rb and creates objects that are backed by redis, with operations like push, pop, etc. cleanly mapped. In other words, it's a more ruby-like API. I recommend reading the github README for redis-objects, it goes into a lot of depth.
- dasil003 16y agoThe critical distinction of redis-objects is that it does not abstract away the atomic redis commands, which are the source of redis' power. It contrasts with ORMs where the goal is primarily convenience; with redis-objects the goal is power.