Redis is an open source log-type Key-Value database written in ANSI C language, supports network, can be memory-based and persistent, and provides APIs in multiple languages.
redis is a NoSql (not only sql, not just sql) type database, also known as a non-relational database.
Non-relational databases store data in the form of Key-Value, and the data is stored in memory, which may be a disadvantage. Since the memory size of Redis itself is only 1G and the practical use is only 0.75G, we need to provide additional servers to support it. (Recommended learning:Redis video tutorial)
Advantages and disadvantages:
①Redis saves data in the form of Key-Value, so we only It is necessary to use Key to retrieve data and Key-Value to save data. The time complexity is O(1). The read and write performance is excellent.
② Supports rich data structures, common data structures such as List, String, Set, Hash, etc.
③ Supports data persistence, supports AOF and RDB persistence methods
For more redis-related technical knowledge, please visit theRedis usage tutorialcolumn to learn!
The above is the detailed content of What type of database is redis?. For more information, please follow other related articles on the PHP Chinese website!