Memcache limit memory is exhausted, will the new entry be removed from the old unexpired item? What to do with it?

Source: Internet
Author: User
When the memcache limit memory is exhausted, will the new entry be removed from the old unexpired item?
When the memcache limit memory is exhausted, will the new entry be removed from the old unexpired item? Or how to deal with it?

For example, everyone is not expired, that is, the effective cache time, more than the maximum use of memory, such as 100m, added items, is not advanced first out of such?

------Solution--------------------
LRU automatically clears the less recently used, and then overwrites the new.
------Solution--------------------
Memcache memory is allocated by the page, after the allocation of a page and then divided into more small pieces, the consequences of this, recycling is also by page recycling, so often will not necessarily "old" things also to recycling, so there will be a hit problem, if your server available memory is very small, Or do not use the memcache, you can consider the use of file-type hash cache class
------Solution--------------------
Http://hi.baidu.com/joysoftfan/blog/item/e6deaae459d7ae3ab9382035.html

Google a bit, and then wrote a script to test the next, indeed as 2L said
  • 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.