Salvatore Sanfilippo, the author of Redis, has compared these two memory-based data storage systems in general and is relatively objective, and is summarized as follows: 1) performance comparison: Since Redis uses only single cores, and memcached can use multicore, So on average, Redis has a higher performance than memcached for storing small data on each core. In more than 100k of data, Memcached performance is higher than Redis, although Redis has recently been optimized for the performance of storing big data, but it is slightly inferior to Memcached. 2) Memory usage efficiency comparison: With simple key-value storage, memcached memory utilization is higher, and if Redis uses hash structure to do key-value storage, its memory utilization will be higher than memcached because of its combined compression. 3) Redis supports server-side data manipulation: Redis has more data structures and supports richer data operations than memcached, usually in memcached, you need to get the data to the client for similar modifications and set it back. This greatly increases the number of network IO and the volume of data. In Redis, these complex operations are often as efficient as the general get/set. So, if you need caching to support more complex structures and operations, Redis will be a good choice.
The difference between memcached and Redis