A summary of some differences between memcached and Redis

Source: Internet
Author: User

1, memcached data storage type only Key-value mode storage, Redis support more, including linked list, hash table, set, ordered set, etc.;

2, memcached does not support persistent storage, when the memcached server restarts, the data are all lost; Redis support persistence, is the data stored on disk, restart Redis service can still load the data on the disk, data is not lost;

3, memcached is can support multi-threading, Redis is single-threaded, in a large amount of data, about 100k, memcached speed is faster than Redis, small amount of data redis faster than memcached;

4, memory utilization on the memcached is before the use of partition and memory, and then the memory into a number of small modules, the use of data based on the size of the allocation; Memory usage is high, but if Redis uses a hash structure to do key-value storage, due to its combined compression, Memory utilization will be higher;

5. 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. Therefore, Redis is a good choice if you need caching to support more complex structures and operations.

A summary of some differences between memcached and Redis

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.