Some differences between Redis and Memcached

Source: Internet
Author: User
Tags memcached redis cluster

1. Data structure

Memccached only supports key-value types

The Reids supports String hash list set SortedSet, which are internally represented by Reidsobject.

  

2. Memory Management

Memcached uses the slab allocation mechanism, which divides the memory into blocks of different sizes, which in turn will put data into the appropriate size blocks, effectively reducing memory fragmentation, but will cause some memory waste.

Redis just encapsulates the original mallc/free operation.

Redis will put all the keys into memory, if the memory is not enough to swap part of the value to disk, of course, will also try to clean up some unused data (LRU algorithm).

3. Persistence

Memcached does not support persistence

Redis supports AOF and RDB

4. Cluster Management

Memcached does not support distributed, so it needs to be implemented by the client.

In addition to the client's own implementation, Redis also provides redis cluster to support distributed storage.

Some differences between Redis and Memcached

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.