I just wanted to know if memcache is linked to apache or it runs as a separate process. So, will restarting apache clear my memcache contents or not?
+2
A:
No. Memcache is not linked to the apache process. Memcached is a separate process.
HOWEVER, your application framework if you are using one, may flush memcache if you restart apache.
-daniel
Daniel
2010-09-16 16:14:09
+1, great.. what would be the typical name for the memcache process in an unix environment?
pinaki
2010-09-16 17:43:53
@pinaki memcached
Dustin
2010-09-17 05:38:09
Thanks Dustin..
pinaki
2010-09-17 08:38:15
+2
A:
You can also empty memcached without restarting it:
telnet localhost 11211
11211 it the default port for memcached (if nothing responds on this port check your init script)
And within telnet:
flush_all
This will flush all stored data.
vassilis
2010-09-19 00:00:05