I met Redis
- What is a Redis
- Redis is a NoSQL database based on key-value pairs
- Redis features
- Read and write fast
- The official data read and write rate is 10,000 times per second
- C language is used for development
- Redis uses a single-threaded architecture to prevent the race problems that multithreading can cause.
- Key-value pair-based data structure server
- Redis stores data based on key-value pairs. Different from many key-value pairs,Redis values can be not only strings, but also specific data structures, which not only facilitates development in many application scenarios, but also improves development efficiency.
- feature-rich
- Provides key expiration functionality that can be used for caching.
- Provides publish and subscribe functionality that can be used to implement a messaging system.
- Support Lua scripting function, you can use Lua to create new Redis commands.
- Provides a simple transaction function, can guarantee the transaction characteristics to a certain extent.
- Pipeline is provided, so that clients can send a batch of commands to Redis at once, reducing network overhead.
- Simple and stable
- Redis source code is small
- Redis uses single threads to make development easier
- Redis does not rely on class libraries in the system
- Multiple client languages
- Redis provides a simple TCP communication protocol, and many programming languages can easily access Redis
- persistence
- Redis provides two types of persistence :RDB and AOF
- A master-slave replication
- Redis provides a replication function that enables multiple Redis copies of the same data
- Highly available and distributed
- Redis has officially provided a highly available implementation Redis Sentinel from version 2.8, which guarantees fault discovery and automatic failover of Redis nodes. Redis Cluster is the true distributed implementation of Redis, providing high availability, read and write, and capacity scalability.
- Read and write fast
The attached:
- What is based on the key value:
- Almost all programming languages provide dictionary-like functions, such as Map in Java and Dict in Python. This way of organizing data is called key-value based