Are there any tools to explore what is currently cached inside a memcached pool? Not some much graphs, but the actual key/values currently stored.
The correct answer would be
This would give the output on the lines of:
Note: This is an undocumented command that is not supported by the memcached team and can be removed in any version. For the complete reference, check out Understanding Memcached stats cachedump command.
In basic memcached I do not think there is any way of querying for keys stored in the server. The only think you can get is statistics related to storage and stored items.
Some vendors that have developed memcached compliant solutions, e.g. Gear6, have however added functionality to allow querying.
In the recent version of
which dumps all keys and values.
To dump a list of keys from a server, use
To dump all objects:
To dump all keys in Bash shell, try:
Here is example to get value of single item using