Summary of Redis
Redis origin
In 2008, Merzia, an Italian start-up company, launched LLOOGG, a real-time website statistics system based on MySQL. Soon, The founder of the company, Sanfilippo, was disappointed with the performance of MySQL, so he decided to customize a database for LLOOGG himself, and completed the development in 2009. The database is Redis.
What is a Redis
Redis (Remote Dictionary Server) is an open source, C-language, network-enabled, memory-based and persistent key-value database with multiple language apis.
Why is Redis so fast
-
Completely memory based, the vast majority of requests are pure memory operations, very fast
-
The data structure design is very simple and practical.
-
The use of single thread, avoid unnecessary thread context switch, do not need to consider lock release lock operations.
-
IO multiplexing model is adopted to avoid I/O blocking
The installation of Redis
Under Windows installation
Download: github.com/MicrosoftAr… Redis supports 32 and 64 bits. This depends on your platform.
Just unzip it and double-click redis-server.exe
The following page shows that our Redis has started successfully
Under Linux installation
I use Centos 7 here, and the Redis series will demonstrate Redis based on Centos 7 or docker environment on Centos 7
Wget https://download.redis.io/releases/redis-6.2.4.tar.gz tar - ZXVF redis - 6.2.4. Tar. Gz CD redis - 6.2.4. Tar. GzCopy the code
You’ll see something like this, with a MakeFile that needs to be compiled using GCC. If you don’t already have GCC, run the following command
Yum install GCC make CD redis-6.2.4Copy the code
Entering the Redis directory gives you an executable redis-server
Run the./redis-server command to start
If you see the following prompt, you have successfully booted. Congratulations on successfully installing Redis. Let’s start playing with it later