SysAdmin

How to clear Memcache and redis without restarting the service

JJ
Jobin Joseph · Founder and CEO
·Published 30 November 2016·1 min read

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

[root@memcache ~]# redis-cli  -h 172.25.16.191
172.25.16.191:6379 > flushall
OK
Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →