You can use this command if you want to see how long a key is stored on the online server for the longest time, and no Memcached-tool tool is available.
Stats items
The results of the implementation are as follows:
Stats Items stat Items:310000stat items:3315618stat items: 30stat items:30stat items:30 STAT Items:30
The age 315618 here is the maximum time to live, in seconds.
If you want to see a total of several slab in the current memcached, you can:
Stats Slabs
The results of the implementation are as follows:
STAT 3: chunk_size176STAT 3: Chunks_per_page5957STAT 3: Total_pages2STAT 3: Total_chunks11914STAT 3: Used_chunks10000STAT 3: Free_chunks0STAT 3: Free_chunks_end1914STAT One: chunk_size1096STAT One: Chunks_per_page956STAT One: Total_pages OneSTAT One: Total_chunks10516STAT One: Used_chunks0STAT One: Free_chunks10000STAT One: Free_chunks_end516STATActive_slabs2STATtotal_malloced13622400
This allows you to display a total of several slab numbers, the size of each Chunck in each slab, and how many Chunck are included. Information such as the number of active Chunck.
View Maximum lifetime in memcached