You are on page 1of 2

How to Clear Cache

28.11.2022

Bernard
Imaxo
1

How to Clear Cache


Go in to the terminal and run the following command to go inside the the cache server
(redis)

$ redis-cli

Then login using the following command by replacing the [redis_password_goes_here]


with the redis’s password

127.0.0.1:6379> auth [redis_password_goes_here]


OK
127.0.0.1:6379>

When we get the OK response, it means we successfully logged in.

Then we run the following command to clear all data inside the current database.
127.0.0.1:6379> au
127.0.0.1:6379> flushdb
OK
127.0.0.1:6379>

When we get the OK response, it means that the cache has been cleared.

You might also like