Get the App
SLTechnology News&Howtos  ›  Database  › 

What is the amount of data cached by redis

Shulou Source: shulou.com Published: 2022-06-01 12:44:20 10月03日 Update

What is the amount of data cached by redis? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Redis supports multiple databases, and the data in each database is isolated and cannot be shared, and it is based on a stand-alone machine. If it is a cluster, there is no database concept.

Redis is a dictionary-structured storage server, but in fact an Redis instance provides multiple dictionaries for storing data, and the client can specify which dictionary to store the data in.

This is similar to the well-known fact that multiple databases can be created in a relational database instance, so each dictionary can be understood as a separate database.

Redis plays a more and more important role in distributed applications. With tens of thousands of lines of code, it implements a high-performance data storage service.

Maximum cache settin

Example: maxmemory 100mb

Unit: mb,gb.

The default is 0, and no maximum cache is specified. If new data is added, exceeding the maximum memory, it will cause redis to crash, so set one point.

After setting the maxmemory, you need to set the cache data collection policy.

After reading the above, have you mastered the method of how much data redis caches? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Data database cache dictionary storage maximum multiple content instance method more problem service important helpless for this code memory distributed unit Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi OPPO Reno Huawei MySQL Xiaomi