Wood Chen

How to Clear Redis Cache in BT Panel

0 comments77 views59 words

This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文

1、First, go to the Redis directory, usually: www/server/redis

2、Then open a terminal and connect to Redis: redis-cli -h 127.0.0.1 -p 6379

3、List all keys: keys *

4、Delete a specific key: del key

5、Clear all data on the Redis server: flushall 

6、Clear all keys in the current database: flushdb

Last updated 2024-01-14

Related posts

Comments 0