Memcache Knowledge Point Carding

Source: Internet
Author: User
Tags memcached

http://369369.blog.51cto.com/319630/833234/

1, check whether the client's request data in the memcached, if any, directly return the request data, no longer do any operation on the database, the path operation is ①②③⑦.
2, if the requested data is not in memcached, go to the database, the data obtained from the database to the client, while the data cache a copy to the memcached (memcached client is not responsible, need the program explicitly implemented), the path operation is ①②④⑤⑦⑥.
3. Update the data in memcached every time the database is updated to ensure consistency.
4, when allocated to memcached memory space used up, will use the LRU (Least recently used, least recently used) policy plus expiration policy, the failure data is first replaced, and then replace the most recently unused data.

Memcache Knowledge Point Carding

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.