Memcached Redis Related Dry Goods

Source: Internet
Author: User

In order to check the convenience later, so transferred to your blog, thank you the original blogger.

http://www.searchtb.com/2011/05/redis-storage.html Redis Memory Storage structure analysis

The difference between Http://blog.csdn.net/tonysz126/article/details/8280696/redis and memcached

http://kenby.iteye.com/blog/1423989 memcached Source analysis of the memory management chapter

HTTP://WWW.TUICOOL.COM/ARTICLES/NU7VYB memcached Memory Management mechanism detailed

http://www.cnblogs.com/ceecy/p/3279407.html Redis Usage Summary and memcached similarities and differences

Summarize:
The best way to use 1.Redis is to in-memory all data.
2.Redis more scenes are used as substitutes for memcached.
3. Redis supports data types (String, List, Hash, Set, Sortdset) when it is more appropriate to use Redis when more data types are supported than Key/value.
4. Using Redis is more appropriate when the stored data cannot be excluded.
Memcached is multi-threaded and does not support persistence.
Redis is a single thread that is persisted to disk under certain circumstances.


The network IO model aspect: Memcached is multi-threading, divides into the listener thread, the worker thread, introduces the lock, brings the performance loss. Redis uses a single-threaded IO multiplexing model to maximize the speed advantage and provide a simpler computing capability
Memory management aspects: Memcached uses a pre-allocated memory pool, resulting in a certain amount of wasted space and the memory still has a large space, the new data may be rejected, and Redis uses the field to request memory to store data, do not exclude any non-temporal data Redis is more suitable as a storage instead of a cache
Data consistency: memcached provides the CAS command to guarantee. While Redis provides the functionality of a transaction, it guarantees the atomicity of a sequence of commands and is not interrupted by any action.
. Storage aspect: Memcached only supports simple key-value storage, does not support enumeration, and does not support persistence and replication functions.
A short summary: Redis is a high-performance Key-value database. The emergence of Redis, to a large extent, compensates for the lack of memcached such key/value storage, in some cases can be a good complement to the relational database.

Memcached Redis Related Dry Goods

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.