Does memcache data persist even after server restart?

If the session handler is based on memcached and the memcache server is restarted, is the data stored or all session information has to be recreated?

If not, is memcached memcached even reliable for session storage? Or is it possible to create a session handler that uses both MySQL and memcache? How?


source to share

3 answers

When you restart memcached, you lose all content and it will need resources (from the source, wherever it is) when it is requested.



saving data in memory when you restart your server, you will lose all data stored in memcache

If you just restart your web server the data is still in memory



memcached is a memory caching system that stores data and objects in RAM, so if you restart the server you will lose information. Try using Redis ( ) for your needs.



All Articles