Home >Database >Redis >How to clear redis cache under linux

How to clear redis cache under linux

尚
Original
2019-07-03 15:12:0221771browse

How to clear redis cache under linux

1. First ensure that the redis process is alive

ps -ef|grep redis

How to clear redis cache under linux

2. Execute. /redis-cli or ./redis-cli -h 127.0.0.1 -p 6379

[root@slave bin]# ./redis-cli

How to clear redis cache under linux

3. Execute: dbsize command

How to clear redis cache under linux

4. Execute: flushall command

How to clear redis cache under linux

5. Use keys * for verification Is it empty?

How to clear redis cache under linux

6. Execution: exit

How to clear redis cache under linux

##For more Redis related knowledge, please visit

Redis Use the tutorial column!

The above is the detailed content of How to clear redis cache under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn