Home >Database >Redis >What type of database is redis?

What type of database is redis?

青灯夜游
青灯夜游Original
2019-06-04 11:37:3017392browse

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.

What type of database is redis?

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 the Redis usage tutorial column 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!

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
Previous article:What is Redis clusterNext article:What is Redis cluster