Install and deploy Redis in Linux
I recently learned about redis and also recorded the learning summary in this article. This article mainly describes how to install the redis service in Linux.
1. Redis Introduction
Redis is a non-relational database (NoSQL). NoSQL is stored in the form of key-value. Unlike traditional relational databases, it does not necessarily follow some basic requirements of traditional databases, for example, SQL standards, ACID attributes, and table structures. Such databases have the following features: Non-relational, distributed, open-source, and horizontally scalable.
NoSQL application scenarios: High-concurrency read/write of data, efficient storage and access of massive data, high scalability and high availability of data.
Redis keys can be string, hash, linked list, set, and ordered set. There are many value types, including ststring, list, set, and zset. These data types support push/pop, add/remove, intersection and Union operations, and richer operations. Redis supports sorting in different ways. To ensure efficiency, the data is cached in the memory. It can also periodically write the updated data to the disk or write the modification operation to the append record file.
What are the advantages of redis? For a simple example, see:
Redis clusters are synchronized with Mysql. First, you can obtain data from redis. If redis crashes, you can obtain data from mysql, so that the website will not be suspended.