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?

+3


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.



+5


source


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

+4


source


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 ( http://redis.io/ ) for your needs.

+4


source







All Articles