Introduction to Redis basic commands
If you already know the basic commands, you can This link View specific usage
Redis
Redis is the abbreviation of remote dictionary service, that is, remote dictionary service; Redis is an in memory database (data is stored in memory, and the main data in mysql is stored in disk), KV database (key value), and data str ...
Added by realjumper on Sat, 19 Feb 2022 15:44:35 +0200
Redis replication (Master/Slave)
What is it?
It is the Master / Slave mechanism that we often call Master-Slave replication. After the host data is updated, it is automatically synchronized to the standby machine according to the configuration and policy. The Master is mainly written and the Slave is mainly read
What can I do?
Read write separation Disaster recovery
Ho ...
Added by Deviants on Sat, 19 Feb 2022 12:57:41 +0200
Set type of redis value basic data type
Set type of redis value basic data type
1. Why
characteristic
disorderduplicate removal
Application scenario
Collection operation. Finding intersection, union and difference sets Random events.
Solve the lottery problem: 10 prize users < 10, and the winning points of users are whether to repeat or not
Positive number de du ...
Added by robbluther on Sat, 19 Feb 2022 12:30:22 +0200
The deployment of non relational database Redis, the use of Redis basic commands, Redis master-slave replication, read-write separation, and the persistence of Redis database
Architecture diagram
Install Redis service
wget http://download.redis.io/releases/redis-2.8.6.tar.gz
tar -xvf redis-2.8.6.tar.gz
cd redis-2.8.6
make
mkdir /usr/local/redis/etc
cp redis.conf /usr/local/redis/etc/
ps: make error resolvent: Execute the command make MALLOC=libc
Modify the profile to start the service
vim /usr/local/re ...
Added by StormTheGates on Sat, 19 Feb 2022 07:53:43 +0200
Interview series - 4 hash application scenario analysis and Practice
British Fleming once said: "don't wait for luck, you should try to master knowledge."
1 Preface
Hello, I'm amu! Your harvest is my love, and your praise is my recognition.
As a graduate with one-year development experience, we talked with the interviewer about the list type of basic data structure of redis in the previous chapter. ...
Added by gaza165 on Sat, 19 Feb 2022 01:05:56 +0200
[SpringBoot] use the function of token SMS verification code Redis to realize basic login and registration operations (including how to configure Redis token verification code)
On the idea of login registration business and the realization of some codes
Recently, I started the development of mobile terminal project. As I am in the background, I certainly can't avoid realizing the functions that every app should have: login and registration. At the beginning, I felt very confused. So I write a blog here to share with ...
Added by lisaNewbie on Fri, 18 Feb 2022 23:36:14 +0200
HashSet source code analysis, based on jdk1 8 detailed analysis
Before reading this article, it is recommended to read the blogger's article on HashMap: HashMap source code analysis + interview questions
HashSet source code analysis
1, Basic introduction
The underlying implementation is based on HashMap, so it is not guaranteed to iterate according to the insertion order or other order The time-con ...
Added by finkrattaz on Fri, 18 Feb 2022 21:28:44 +0200
redis distributed lock
preface
redis and zookeeper are the most widely used choices of distributed locks in the market. These two implementations have their own advantages.
zookeeper: high availability, low performance and low concurrency.
redis: high performance, medium availability and high concurrency
Select the appropriate technology implementation according ...
Added by cab on Fri, 18 Feb 2022 16:19:16 +0200
Summary of Redis learning notes
1. Redis transaction
1.1 role of redis transaction
Redis transaction is a separate isolation operation. All commands in the transaction will be serialized and executed sequentially (because of single thread + IO multiplexing). During the execution of the transaction, it will not be interrupted by the command request sent by other client ...
Added by gdure on Thu, 17 Feb 2022 22:48:32 +0200
Redis operation and maintenance - learning from scratch
1, Introduction to Redis
Redis is an open-source SQL database developed based on C language for the underlying code. Redis runs and persists based on memory and adopts the storage form of key value (key value pair). It is an indispensable part of the current distributed architecture
Advantages of Redis
It has extremely high data reading ...
Added by coverman on Thu, 17 Feb 2022 22:36:49 +0200