Memcached and Redis Comparison

Source: Internet
Author: User

Memcached Redis
Persistence of Not supported Support
Distributed Support

Support Master-Slave

Involves complex operations that may require a distributed lock to support

Thread Multithreading

Single thread avoids unnecessary context switching and race conditions
Thread closure concept, the task of shutting down a thread, naturally avoiding the problem of thread safety

, but locks are still required for composite operations that rely on multiple redis operations,

And it could be a distributed lock.

Key-value Support Support
Complex data types Not supported Support
Storage direction Memory Cache Memory Cache
Disaster preparedness

Requires a good disaster preparedness plan, otherwise the pump will cause

Loss of data in memory, resulting in an unpredictable loss

By supporting persistent storage, you only need to configure the master

Can form a good plan for disaster preparedness.

Speed Pure memory Operations (non-general speed)

The vast majority of requests are purely memory operations (very fast)


Memcached and Redis comparison

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.