1. Storage mode
Both Memcache and Redis data are stored in memory and are in-memory databases. However, Memcache can also be used to cache pictures, videos, and so on.
2. Data type
Redis not only supports simple k/v types of data, but also supports types of data structures such as set, List, hash, and so on.
Memcache only supports simple data types, complex objects need to be handled by the client itself.
3. Persistence
Redis support data persistence, you can keep the in-memory data on disk, restart the time to load again for use;
Memcache does not support data persistent storage
4. Data security
Memcache hang up, the data is gone; Redis can be saved to disk periodically
5. Disaster recovery
The data cannot be recovered after the memcache has been hung out; Redis data can be recovered by aof after loss;
6. The most essential difference (persistence)
Redis has a database feature in many ways, or a database system, and memcached is simply a k/v cache
The difference between Redis and memcache