The method of clearing redis cache
This article mainly introduces the method of clearing redis cache, which has certain reference value, and friends who need it can refer to it. I hope you all have a lot to gain after reading this article. Let's take a look at it together.
1. Access redis root cd /usr/local/redis-2.8.19
2. Register redis: redis-chli-h 127.0.0.1-p 6379
3. View all key values: keys *
4. Delete the value of the specified index: del key
5. Empty the entire Redis server: flushall
6. Clear all keys in the current library: flushdb
REmote DIctionary Server(Redis) is a key-value storage system written by Salvatore Sanfilippo.
Redis is an open-source, memory-based and persistent log, Key-Value database written in ANSI C, compliant with the BSD protocol, network support, and provides APIs in multiple languages.
It is often referred to as a data structure server because values can be strings, hashes, lists, sets, and sorted sets.
Thank you for reading this article carefully. I hope Xiaobian can share the method of clearing redis cache to help everyone. At the same time, I hope everyone will support you more. Pay attention to the industry information channel. Find out if you encounter problems. Detailed solutions are waiting for you to learn!