I hate communicating with your goals, but I would advise against using redis for memcached for general rail caching.
I use redis and multiple resque in a large rails application, and I thought it would be nice to combine caching, raw redis and resque into one. I ran into several serious issues:
- First of all, it was slower. This could be completely my specific use, the redis-store library, or redis itself. I'm not going to do anything wrong, and your mileage may vary, but it suck to dump a lot of time, going to redis when memcached "just works."
- Memcached is good because it is very easy to add servers and use consistent hashing to achieve your goals. Redis also has this, but in my experience it was difficult to simultaneously consider redis as a monolithic data warehouse in some parts of my application, and in other parts consider it as distributed, sequentially hashed drops of caching.
Good luck with your project. I adore redis AND memcached and use them in all my projects, but I let him do it as a kick-ass data structure server and let another remove his ass while caching.
efalcao Dec 03 '10 at 3:43
source share