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 !!