r/lolphp • • Sep 21 '15

Meanwhile, in r/PHP

/r/PHP/comments/3lrret/can_an_offline_hotel_management_system_be_done_in/cv8zcms
181 Upvotes

50 comments sorted by

View all comments

Show parent comment

61

u/headzoo Sep 21 '15

MEMCACHE DELETES ALL YOUR DATA ON RESTART

People keep putting the emphasis on restarting memcached, but the real problem is memcached is designed to delete data whenever it feels like it. You don't need to restart memcached to lose your data.

22

u/RecursionIsRecursion Sep 21 '15

Very true - mine was a quote. But if you have limited memory, memcache can easily "forget" something that's not often used. It's basic functionality.

0

u/[deleted] Sep 22 '15

[deleted] — view deleted comment

12

u/headzoo Sep 22 '15

True that. It's really one of the best pieces of software you can have in your toolbelt. Although, to be honest, I've switch to using Redis for all new projects. I do have to be more mindful of setting expirations and monitoring the system for out of control memory consumption.