The difference between Redis and memcache

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.