We are currently using memcache for storing session data. I have heard that memcached or redis are better. I need to understand what is the difference between them? in order to understand which one is the best choice
This answer explains it very thoroughly. Memcached vs. Redis?
But if you want a simple answer, here it is:
Redis
Memcached
So basically, if you don't really care about the two big advantages of Redis, you should use memcached.
For your own use case I'd say Redis is better. Since you're using it to store user session data you probably have the need to perform operations on a single field of the session and for that the Redis hash data type is perfect. You can find a very detailed comparison between them in this article: Redis VS Memcached: Which one to choose?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With