How to clear Memcache and redis without restarting the service

30. November 2016 SysAdmin 0
How to clear Memcache and redis without restarting the service

How to clear memcache and redis without restarting service.

Clear Memcache

telnet 172.25.16.191 11211
Trying 172.25.16.191...
Connected to 172.25.16.191.
Escape character is '^]'.
flush_all
OK
quit
Connection to localhost closed by foreign host.

Clear Redis Cache
[[email protected] ~]# redis-cli  -h 172.25.16.191
172.25.16.191:6379 > flushall
OK


Leave a Reply

Your email address will not be published. Required fields are marked *