Home > Database > Redis > body text

How to clear redis cache under linux

Release: 2019-07-04 18:10:51
Original
21738 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template