1
votes

I have a single page app (Rails + Backbone.js + Postgres on Heroku), and as some of my queries are starting to slow down for users with lots of data (there are multiple queries per object), I want to start caching the JSON I'm sending the client.

I'm already using Redis with Resque, so I'm not sure if I should be using the same redis instance for both Resque and general data caching. Is that a reason to go with Memcached?

I guess I'm looking for general input from those with experience with either so I can quickly decide on one of the two and start caching stuff (sorry if a clear-cut answer cannot be given).

Thanks for any help.

1

1 Answers

1
votes

Both will cache strings just fine. Although I think that using redis for a simple cache is an overkill. I'd go with memcached.

Blog post from Salvatore on caching with Redis.