Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am currently using Node, Express and MongoDB (with Mongoose) as a datastore, I hear Redis is a persistant Memcached, but why would I use this? Is Memcached better if I'm using Mongo?

What's its use cases? Is it for caching, storage, speed?


share|improve this question
Define better. You've given us nothing to go on. What's your goal? What's important? –  Walter Nov 20 '12 at 14:06
Well, I guess I'd just like to know what use cases it has, I mean, do you use it for speed, storage, caching, as I'm just confused about the whole thing! –  Jacob Clark Nov 20 '12 at 14:09
check this thread from S.O.: stackoverflow.com/questions/10558465/memcache-vs-redis –  amphibient Nov 20 '12 at 15:18
@JacobClark - You should edit your question to include more detail. Take a look at the site's FAQ for more information on asking questions on this site. –  Walter Nov 20 '12 at 15:56
add comment

closed as not a real question by gnat, Loki Astari, Walter, MainMa, StuperUser Nov 20 '12 at 17:24

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

I think it's not clear for you the differences between one and the other.

MongoDB is a nonstructured (at least, in definition) distributed document storage. For clearing purpose you can think about it as a high scalable and not so high performance JSON storage (though actually it uses BSON). It has a simple but effective multitype index system, replication and sharding, and a lot of more nice features.

Redis is a simplest key/value store, with transient data caching. It can works as an efficient queue system.

Looking for more specific information you will find a lot of scenarios where both them are used, Mongo as a true persistent canonical storage, and Redis as an transient/cache storage.

share|improve this answer
So in that case would I use Redis as a persistant storage of data caching, say, queries in a large database that have been pulled from Mongo, store them inside Redis? –  Jacob Clark Nov 20 '12 at 15:25
Yeah. Actually, redis has a lot of other features (aggreagation, sorting, etc), so if you think to use it exclusively as a key/value store, memcached would be a beeter choice. –  Adilson de Almeida Jr Nov 20 '12 at 15:32
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.