A good interface for accessing Memcached server instances is phpMemCacheAdmin .
I prefer command line access using telnet .
To connect to Memcached using Telnet, use the following telnet localhost 11211 command from the command line.
If you want to end your Telnet session at any time, just type quit and press return.
You can get an overview of the important statistics of your Memcached server by running the stats command after connecting.
The memory is distributed inside pieces inside and is constantly reused. Since the memory is divided into plates of different sizes, you lose memory if your elements do not fit perfectly into the panel that the server decides to put.
Thus, Memcached automatically allocates your data to different "plates" (think of it as partitions) of memory, based on the size of your data, which, in turn, makes the memory allocation more optimal.
To list the slabs in the instance you are connected to, use the stats slab command.
A more useful command is stats items , which will provide you with a list of slabs, which includes the number of items stored in each panel.
Now that you know how to list plates, you can browse inside each panel to list the elements contained inside using the stats cachedump [slab ID] [number of items, 0 for all items] command.
If you want to get the actual value of this element, you can use the get [key] command.
To remove an item from the cache, you can use the delete [key] command.
Jack Apr 23 '13 at 0:33 2013-04-23 00:33
source share