redis_cache
Flushing Redis Cache
To flush redis cache without restarting the service, follow this guide
First find out what port + IP address redis is running on:
1 |
netstat -plnt | grep redis |
1 |
tcp 0 0 10.x.x.26:6379 0.0.0.0:* LISTEN 5972 /redis-server 1 |
You will first need to get the password from the local.xml file in the document root.
The format is normally path/to/document/root/app/etc/local.xml
1 |
grep -i password path /to/document/root/app/etc/local .xml |
1 2 |
<password><![asjpAJSPAkspaks]]>< /password > <password>aNSLAjsAJMS;MAs;sA< /password > |
Now we need to telnet using the information from the netstat grep
1 |
telnet 10.x.x.26 6379 |
1 |
INFO |
1 |
-NOAUTH Authentication required. |
1 |
AUTH reallylongpassword |
1 |
+OK |
1 |
FLUSHALL |
1 |
RUN INFO |
redis_cache.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1