Home >Database >Redis >How to clear cache data in redis

How to clear cache data in redis

(*-*)浩
(*-*)浩Original
2019-11-21 15:14:316920browse

How to clear cache data in redis

Use the command line to clean redis cache in Windows environment

1. Enter cmd in the redis installation directory Study: Redis video tutorial)

2. redis-cli -p port number

3. flushdb Clear the current database cache

4. Flushall Clear all redis caches

How to clear cache data in redis

Just right-click on the client:

How to clear cache data in redis

The above is the detailed content of How to clear cache data in redis. 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
Previous article:Why use redis as cacheNext article:Why use redis as cache