Skip to content

Comment on Using Redis with Ruby on Railsparent

Comments

Would you please explain why you prefer it to rb-redis?

redis-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.

The 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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.