Flush Memcached completely (flush_all)
clear memcached cache | flush memcached without restart | run flush_all memcached | memcached | nc | cache | flushCaution: This command changes the system. Understand what it does before you run it.
printf 'flush_all\nquit\n' | nc 127.0.0.1 11211Sends flush_all to Memcached, which confirms with OK. All stored entries are then treated as expired, and the occupied memory is reused on the next write. This affects every application using this Memcached instance.
Note: If PHP sessions are stored in Memcached (session.save_handler = memcached), all visitors are logged out afterwards.
Also searched as
- clear memcached cache
- flush memcached without restart
- run flush_all memcached