1. Open the command line window
Open "redis-li.exe" under the Redis installation directory.
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'
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