Home  >  Article  >  Database  >  How much data can redis cache?

How much data can redis cache?

anonymity
anonymityOriginal
2019-06-05 10:23:464412browse

Redis supports multiple databases, and the data of each database is isolated and cannot be shared, and is only available on a single machine. If it is a cluster, there is no concept of a database.

How much data can redis cache?

Redis is a dictionary-structured storage server. In fact, a Redis instance provides multiple dictionaries for storing data. The client can specify where to store the data. in the dictionary.

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 an independent database.

Redis occupies an increasingly important position in distributed applications. In just tens of thousands of lines of code, a high-performance data storage service is implemented.

Maximum cache settings

Example: maxmemory 100mb

Unit: mb, gb.

The default is 0, and the maximum cache is not specified. If new data is added and exceeds the maximum memory, redis will crash, so it must be set.

After setting maxmemory, the cache data recycling policy must be set accordingly.

The above is the detailed content of How much data can redis cache?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn