In order to design a perfect cache, it is best practice to consider read/write speed, scaling, memory usage, and disk I/O. For a detailed comparison of these factors, please refer to the table at https://aws.amazon.com/elasticache/redis-vs-memcached/.
At the highest level, we can say that Memcached is generally used to store small and static data, such as HTML code pieces. As the Memcached core memory management is efficient and simple, it has a very small footprint of metadata; as a result, it consumes less memory for overheads. The disadvantage of Memcached is that it doesn't provide persistent storage options. If any node/cluster fails for any reason, all the data is lost. So, it is highly recommended to use Memcached with easily recoverable data.
Redis has five primary data structures, along with finely-grained control over...