Redis and memcached differences

Source: Internet
Author: User

   

Simply compare the difference between Redis and memcached, Most will receive the following view:

1     Redis not only supports simple k/v types of data, but also provides storage of data structures such as List,set,hash.

2    backup of Redis support data , which is a data backup of Master-slave mode. BR style= "Color:rgb (50,62,50); Font-family:simsun;font-size:14px;white-space:normal;background-color:rgb ( 232,232,232); " >
3    redis supports data persistence , which keeps the in-memory data on disk and can be loaded again when it is restarted.

throw these away, You can delve into the internal structure of Redis to see more essential differences and understand the design of Redis.

   

This feature allows Redis to maintain data that is larger than the memory size of its machine itself. Of course, the memory of the machine itself must be able to maintain all the keys, after all, the data will not be swap operations. Also, since Redis swaps the in-memory data to disk, the main thread that provides the service and the sub-thread that is doing the swap will share this memory, so if you update the data that needs swap, REDIS will block the operation until the sub-thread completes the swap operation before it can be modified .

This article from "Write a blog Money" blog, please be sure to keep this source http://dadonggg.blog.51cto.com/12672150/1949821

Redis and memcached differences

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.