Environmental Science:
Environment: redis6 two point six A linux virtual machine, contos7
One master, two slave and three sentinel cluster. When the master node goes down, a new master node is re selected through sentinel to ensure the availability of the cluster.
Main functions of sentry: 1. Cluster monitoring: responsible for mon ...
Posted by aladiyat23 on Mon, 25 Apr 2022 15:12:39 +0300
preparation
The code of redis-0.1 is downloaded from the network. This version has a small amount of code and is easy to understand. It also contains many basic ideas and theories of the author in developing redis. It is a good source code reading material. from Redis source code download address After downloading, unzip it to the directory sp ...
Posted by erupt on Mon, 25 Apr 2022 12:30:55 +0300
Download and install, and execute commands in turn;
Install log cutting service logrotate: yum -y install logrotate
Download the redis installation package from the official website. Note which directory the command is currently executed in and which directory the downloaded package will be in
wget http://download.redis.io/releases/redis-4.0 ...
Posted by the_manic_mouse on Mon, 25 Apr 2022 04:37:56 +0300
brief introduction
background
In traditional Java Web projects, database is used to store data, but there are some fatal disadvantages, which mainly come from the performance. Because the persistent data of database is mainly oriented to disk, and the read / write of disk is relatively slow, there is rarely high concurrency.
characteristic
...
Posted by jaydeesmalls on Sun, 24 Apr 2022 22:55:01 +0300
1, Import dark horse comment items
1. Database:
⚫ tb_user: user table ⚫ tb_user_info: user details table ⚫ tb_shop: merchant information table ⚫ tb_shop_type: merchant type table ⚫ tb_blog: user diary table (DA Ren's shop Diary) ⚫ tb_follow: user attention table ⚫ tb_voucher: coupon form ⚫ tb_voucher_order: order form of c ...
Posted by bdee1 on Sun, 24 Apr 2022 16:56:48 +0300
I HashSet overview
HashSet is an implementation class of Java Collection set. Set is an interface. In addition to HashSet, its implementation class also has TreeSet and inherits the Collection. HashSet Collection is very common and is also a knowledge point often asked by programmers during interview. The following is the structure diagram
p ...
Posted by darlingm on Sun, 24 Apr 2022 16:29:03 +0300
1. Red envelope ranking query
In the above case, we realized the information query of a user grabbing the red envelope. Next, we realized the publicity of grabbing the red envelope and sorted it according to the amount of the red envelope For the information of 100 users, the concurrency of this data will be greater, and we need to cache ...
Posted by lovasco on Fri, 22 Apr 2022 15:20:21 +0300
Misuse of Redis cache String
In our daily development, if Redis is used as the cache, the most used may be the String type. The String type is simple and easy to understand, but this is only the development aspect. If the amount of business data is too large, whether the feasibility of using String type storage is still the highest, we can rel ...
Posted by TheAngst on Fri, 22 Apr 2022 10:12:33 +0300
1. Introduction to redis version features
Six redis are installed here. The configuration is as follows: Tips (Redis6.0.5):
If you need to install stand-alone version, you need to install the specified plug-in
yum -y install gcc gcc-c++ libstdc++-devel
upgrade gcc
yum -y install centos-release-scl devtoolset-7
yum -y install devtoolse ...
preface
LRU algorithm is actually called the longest unused algorithm recently. It often appears in the written test questions of the interview. It is more likely to make you tear the LRU algorithm with your hand during the interview. If you don't understand the truth, it's really hard work. There's no way. So today, let's summarize the LRU al ...
Posted by Mastodont on Wed, 20 Apr 2022 11:52:17 +0300