As above really, if I store something (e.g. website session data) in memcached, is it possible to remove the data securely so that it would not be evident in a later memory dump?
I assume delete just unassigns the memory rather than wiping it? Could I manually junk the allocated memory by updating the key with random data before deleting it?
Obviously encrypting the data before storing it would be a solution but this also adds a performance overhead.
Check the FAQ. So, if you want to secure your data, because you are in a hostile environment, use SASL authentication. Check it out: SASL
And make sure no one has access to memcached from the outside!!! Bind it to localhost.
Excerpt from the manual: