Tech:Memcached

Memcached is used for object and session caching. Memcached is currently installed on mem101 and mem131

Commands
This will flush all keys from the database storage and can be helpful for in-house debugging or resolving issues. The command should be ran sparingly, like its child. You can also specify specify how long it can take (in seconds) to run for example.
 * flush_all

This can be used to fetch the listed key. This does not support regex. It must be the exact key. Example:.
 * get

This can be used to set a key with a value. Example.
 * set

This can be used to delete a key. Example.
 * delete


 * stats

Used to display general stats about the memcached instance.

Note: You can get all keys via PHP there's currently no easy way to do it just with TCP.

Running
There's multiple ways to connect to memcached and run commands. PHP or via TCP.

To use TCP run the following:

Then follow.

You can do it via PHP by following and the docs.