Install the latest version of redis-6.2.6
System: CentOS Linux release 7.9.2009 (Core)
1. Installation of GCC
Since redis is developed in C language, you must first confirm whether to install gcc environment (gcc -v) before installation. If not, execute the following command to install
course: https://www.cnblogs.com/huangshuqiang/p/15477407.html
2. Download and unzip the instal ...
Added by mburkwit on Thu, 28 Oct 2021 15:21:06 +0300
Data type analysis of Redis source code - DICT
Data type analysis of Redis source code - DICT
The current Redis analysis version is 6.2, which should be noted.
DICT, dictionary data structure, is essentially a hash table. Related documents mainly include dict.h and dict.c.
Infrastructure
dictEntry is a hash node and a key value pair, in which the value adopts the union v. it can be seen ...
Added by rUmX on Wed, 27 Oct 2021 06:25:39 +0300
I'll take you to deeply analyze the principle of Redisson's implementation of distributed locks
Principle of Redis implementing distributed lock
We talked about the application of Redis in the actual business scenario. Now let's learn about the application of Redisson functional scenario, that is, the implementation scenario of distributed locks that we often use.
Introduce redisson dependency <dependency>
<groupId>org. ...
Added by ajaybuilder on Tue, 26 Oct 2021 14:04:48 +0300
SpringBoot + Redis solves the problem of massive repeated submission
Author Murong Qianyu
Source| https://www.jianshu.com/p/c806003a8530
preface
In actual development projects, an exposed interface often faces many requests. Let's explain the concept of idempotence: the impact of any multiple execution is the same as that of one execution. According to this meaning, the final meaning is that the impa ...
Added by social_experiment on Fri, 22 Oct 2021 04:23:00 +0300
Jedis simple operation, Redis pipeline, Lua script and jedis simple example
1. Overall code example
public class JedisSingleTest {
public static void main(String[] args) throws IOException {
JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();
jedisPoolConfig.setMaxTotal(20);
jedisPoolConfig.setMaxIdle(10);
jedisPoolConfig.setMinIdle(5);
// Timeout, which is both a ...
Added by DeathRipple on Thu, 21 Oct 2021 21:51:59 +0300
[DRF] how does django restframework use redis for token authentication
1, Foreword
restframework has its own convenient authentication and permission system: Official document (token authentication)
The token of the official document is based on the authToken in the database_ Token table
Sometimes, when too much user information needs to be used in subsequent interfaces, frequent, high and distributed qu ...
Added by smileyriley21 on Fri, 15 Oct 2021 20:51:19 +0300
Redis07: comprehensive application in SpringBoot project
Business description
All article tags are queried from a blog database and stored in the cache. Subsequent queries can be obtained from the cache. Improve its query performance.
preparation
Initialization data
Initialize the data in the database. The SQL script is as follows:
DROP DATABASE IF EXISTS `blog`;
CREATE DATABASE `blog` DEFAULT ...
Added by ziggs on Thu, 14 Oct 2021 09:08:37 +0300
Redis Data Type - Collection Object, Ordered Collection Object
Collection object
set types are also used to hold multiple string elements Unlike list types, duplicate elements are not allowed in a collection, and elements in a collection are out of order and cannot be retrieved through an index subscript
A collection can store up to 232-1 elements Redis not only supports addition, deletion, and censo ...
Added by azn_romeo_4u on Wed, 13 Oct 2021 19:38:48 +0300
redis sentry high availability deployment scheme
redis high availability cluster deployment scheme
1. redis installation and deployment
redis installation is recommended to use source code compilation and installation, which is applicable to most linux systems
# To download the redis file, it is recommended to create a new folder where you want to install it, and then download it to the fo ...
Added by Asinox on Tue, 12 Oct 2021 10:04:20 +0300
06 redis architecture design
Redis master-slave replication
brief introduction
The read-write capability supported by a single redis is still limited. At this time, we can use multiple redis to improve the concurrent processing capability of redis. How these redis cooperate requires a certain architecture design. Here, we first analyze and implement the master / slav ...
Added by bhinkel on Tue, 12 Oct 2021 06:24:59 +0300