Invalid memcached expiration time

Source: Internet
Author: User
The expiration time of memcached is invalid. When set (key, value, fals, 60) is used in PHP, the key is still there after expiration. Environment: Centos6, memcached version: the latest memcached expiration time is invalid. When set (key, value, fals, 60) is used in PHP, the key is still there after expiration. Environment: Centos 6, memcached version: Latest

Reply content:

The expiration time of memcached is invalid. When set (key, value, fals, 60) is used in PHP, the key is still there after expiration. Environment: Centos 6, memcached version: Latest

The expiration time of memcached cannot be set at will. There is a maximum time limit of 30 days. If it exceeds 30 days, true is returned during storage, but no data can be obtained. (Perform verification only when retrieving data to see if the data is invalid)

When it comes to this expiration time, we have to talk about the cache invalidation policy of memcached:

The cache invalidation policy of memcached is LRU (least recently used) plus expiration invalidation policy. When you store data to memcached, You may set an expiration time, either permanently or for a period of time. However, if the memory allocated to memcached is used up, the expired data is replaced first, followed by the least recently used data.

Are you sure you have no other processes set?

Are you sure you didn't save a value in the previous test, or the scope is different?

The problem has been solved. Thank you for your enthusiastic attention !!

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.