3 ms·
If you need an in memory cache, you use memcached. If you need data structures and have trivial data sets (this is an enviable position) you use redis. If you
by haimez 10y ago
If you need an in memory cache, you use memcached. If you need data structures and have trivial data sets (this is an enviable position) you use redis.
If you don't know why you need one or the other, use redis until you can't anymore. Plenty of people still use memcache, although lots of the current users are forking their implementation to get specific behaviors from the internals.
- chetanahuja 10y ago"trivial data sets... you use redis" Can you elaborate on what you mean by "trivial data sets" and why is redis only suitable for those?
- ddorian43 10y agoJust check the docs: strings, integers, lists, hashes, sets, sorted sets, geo etc
- chetanahuja 10y agoSo you mean trivial data types? Well how's memcached (the other alternative in this discussion) gets you less trivial data types? Quite the contrary in fact.
- ddorian43 10y agoThat's welcoming downvotes. I don't remember memcache giving you any list/set/hash. Go check the docs.
- chetanahuja 10y ago"trivial data sets... you use redis" Can you elaborate on what you mean by "trivial data sets" and why is redis only suitable for those?