Get the App
SLTechnology News&Howtos  ›  Database  › 

The method of clearing redis cache

Shulou Source: shulou.com Published: 2022-06-01 04:31:49 09月30日 Update

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!

Tags: Method data article cache server language support service order value memory content multiple character string database data structure log friend Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Information vpn Apple Xiaomi