Memcached and Redis differences

Source: Internet
Author: User
Tags memcached

Memcached: is a high-performance distributed memory cache server, essentially a memory Key-value database, but does not support data persistence, the server shuts down, the data is all lost. Only the KEY-VALUE structure is supported.

Redis: Put most of your data in memory and support data types: strings, hash tables, linked lists, collections, ordered collections, and related operations based on these data types. Redis internally uses a Redis object to represent all keys and value.

Their difference: 1) Not all data in Redis is stored in memory all the time, which is the biggest difference compared to memcached. 2) Redis not only supports simple key-value-type data, but also supports strings, hash tables, linked lists, collections, and ordered collections. 3) Redis supports data backup, which is a backup of Master-slave mode. 4) Redis support data persistence, can save in-memory data on the disk, reboot can be loaded into memory again when the use. After the Memcached server shuts down, data is lost. 5) After memcached hangs, data cannot be recovered and Redis data is lost after AOF recovery (disaster recovery).

Memcached and Redis 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.