Redis is an open source high performance key value pair database.
Feature 1 storage structure
Redis is the abbreviation for Remote Dictionary server, which stores data in a dictionary structure and allows other applications to read the contents of the dictionary through the TCP protocol.
The storage mode of Redis dictionary structure and the support of many kinds of key value data types enable developers to map data directly in the program to Redis, and the data stored in Redis is very similar to how it is stored in the program.
Feature 2 memory storage and persistence
All the data in the Redis database is stored in memory, and performance contrasts with other hard disk storage-based databases with significant advantages.
Redis provides support for persistence in that the data in memory can be written asynchronously to the hard disk without affecting the continued provision of the service.
Feature 3 features Rich
Redis can set the lifetime for each key, the time expires after the key is automatically deleted, this feature with excellent performance so that Redis can be used as a caching system. As a caching system, Redis can also limit the maximum memory space occupied by data, and can automatically eliminate unwanted keys in accordance with certain rules after the data reaches space limit.
The Redis list type key can be used to implement queues and to support blocking reading, which makes it easy to implement a high performance priority queue. Redis also supports the "Publish/Subscribe" message mode.
Feature 4 Simple and stable
Redis intuitive storage structure makes it easy to interact with Redis through programs.
Using commands to read and write data in Redis, Redis command statements can be likened to the SQL language of relational databases.
Redis provides client libraries for dozens of different programming languages that encapsulate the Redis command, making it easier to interact with Redis in a program.