What are the two basic questions about memcached? Excuse me

Source: Internet
Author: User
What are two basic questions about memcached? Ask! 1. I set the data retention period in memcached to 1 hour. then I restarted a memcached service and found that all the data was lost. what is the root cause? 2. I heard that redis is awesome? Which of the following is used by enterprises? Which one is better? What is the current situation? What are two basic questions about memcached? Ask!

1. I set the data retention period in memcached to 1 hour. then I restarted a memcached service and found that all the data was lost. what is the root cause?


2. I heard that redis is awesome? Which of the following is used by enterprises? Which one is better? What is the current situation?Share:
------ Solution --------------------
Memcached does not back up data to the hard disk, and the data will naturally disappear after it is restarted.
Redis backs up data to the hard disk.

Both of them need to occupy the limited memory of the server, so you need to allocate the memory properly
Unless you give up the "relational database", the two types of databases will be manipulated at the same time, but the system overhead will be increased in vain.

In fact, mysql also supports memory-based tables, and the performance is not inferior to those of them.
------ Solution --------------------
Memcached is more about data sharing among multiple servers.

The memory table mentioned by Xu is really awesome...

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.