Cache expiration policy (the difference between FIFO, LRU, LFU three algorithms) __ Cache

Source: Internet
Author: User
When the cache needs to be cleaned up (for example, the space occupancy is close to the critical value), some sort of elimination algorithm is needed to decide which data to clean out. Commonly used elimination algorithms have the following: Fifo:first in the first out, FIFO. Judged by the time stored, from the current farthest data priority is eliminated. Lru:least recently Used, least recently used. To determine the most recent time used, the current farthest data priority is eliminated. Lfu:least frequently Used, most infrequently used. In a period of time, the data is used the least number of times, priority is eliminated.

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.