First, the basic knowledge
- Store data in the form of key-value, so that you do not need to store objects with associated properties in multiple tables, like a relational database.
- Redis stores data in memory, which greatly increases the efficiency of data transfer and asynchronously writes to disk without compromising transmission efficiency, ensuring durability
- Redis is a dictionary-structured storage server, and a Redis instance provides multiple dictionaries for storing data, each of which corresponds to each database in a relational database
- Redis does not support setting different passwords for each database, and multiple databases in a Redis instance are not completely isolated, Flashall can empty all data for a Redis instance, and a Redis instance is suitable for storing different types of data for the same application. Instead of storing data for different types of applications, the Redis instance is lightweight for different types of application data that can be placed in different Redis instances.
- Hash type: Suitable for storing objects, using object categories and IDs to form key names, using fields to represent objects ' properties, and field values to store property values
6.
Redis Learning Notes