Clear Redis cache

            Redis cache cleaning

 

1. Access the redis root directory cd /usr/local/redis-2.8.19

2. Log in to redis: redis-cli -h 127.0.0.1 -p 6379

3. View all key values: keys *

4. Delete the value of the specified index: del key

5. Clear the data of the entire Redis server: flushall 

6. Clear all keys in the current library: flushdb 

1. Access the redis root directory cd /usr/local/redis-2.8.19

2. Log in to redis: redis-cli -h 127.0.0.1 -p 6379

3. View all key values: keys *

4. Delete the value of the specified index: del key

5. Clear the data of the entire Redis server: flushall 

6. Clear all keys in the current library: flushdb 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324893323&siteId=291194637