tttt
tttt

Reputation: 13

ActiveRecord::Base establish connection to Redis

How do I use the activerecord gem with Redis?

I see all these examples with models and Redis but I keep getting a "not connected" error when I try to use them..

Upvotes: 0

Views: 533

Answers (1)

Schmurfy
Schmurfy

Reputation: 1725

ActiveRecord does not know how to speak to Redis, only to SQL databases. To use redis here is a list of gems you can use:

If you want to use redis directly (I think you should): redis-rb
If you really want an ORM: redis-objects

Upvotes: 1

Related Questions