Memcached and security
Memcached is a memory cache and does not have any built-in security features to prevent access to it. It is highly recommended that you only run memcached inside your firewall where you can restrict access to the server that runs it.
Here are some measures that you can take to improve and harden the security when using memcached:
Deploy memcached behind your firewall and only allow machines from within a trusted network to access the cache.
Encrypt any data that you store in memcached. This will increase the processing times, as you will have to encrypt data before you store it and then decrypt it on retrieval every time. However, if you are storing sensitive information, the additional processing overhead is well worth it to secure the information.
Use keys that are hard to guess. As memcached stores data signed keys, anyone who gains access to the server can query the server for data by guessing the keys. If you utilize keys that are generated using a hash algorithm...