Command line to clear Redis cache

1. Open the command line window

Open "redis-li.exe" under the Redis installation directory.

insert image description here

2. Authorization

Direct operation in the opened command line will prompt that there is no permission. You need to use the auth command to authorize. The usage method is as follows.
auth 'Here is the Redis password'
insert image description here

3. Clear the cache

There are two ways to clear the cache: clear the database cache and clear all caches.
1. Clear the database cache:
flushdb
2. Clear all caches:
flushall
insert image description here

Guess you like

Origin blog.csdn.net/qq_40690077/article/details/129702829