Redis Chapter 4 distributed lock principle + native implementation code

Redis Chapter 4 implementation of distribution lock and Lua script + native code implementation In the previous article, redistribute was introduced. The application of redistributed in distributed locks is very simple and convenient, but redistribute itself is a encapsulated framework. In this section, we explore the implementation of Redis's ...

Added by bothwell on Mon, 31 Jan 2022 21:44:49 +0200

[data structure] how to check weight efficiently in the case of large amount of data

Scene introduction Originally there were 1 billion numbers, but now there are 100000 numbers. It is necessary to quickly and accurately judge whether these 100000 numbers are in the 1 billion number library? Solution 1: store 1 billion numbers in the database and query the database. The accuracy is improved, but the speed will be relative ...

Added by raffielim on Mon, 31 Jan 2022 17:51:37 +0200

[ Redis ] redis. Detailed explanation of conf file

  for Redis It is very important to understand the conf file. Like JVM, Mysql master-slave replication, Tomcat basic configuration and Nginx configuration, see the true chapter for details. Especially for Redis cluster or some personalized configuration, this Redis The understanding of Config is even more essential. Here, the author divide ...

Added by sdizier on Mon, 31 Jan 2022 14:50:44 +0200

An idea of using redis to realize distributed lock

In one work, there was a small accident. The result of a redis write and read method was always different from what was expected. After careful consideration, it was found that because all nodes in the cluster use shared caches and queues, resource competition may occur among nodes in some scenarios, There may be a "thread insecurity probl ...

Added by Fearsoldier on Mon, 31 Jan 2022 13:11:34 +0200

Redis from mastery to entry -- detailed explanation of data type List implementation source code

List introduction Each string in the List in Redis becomes an element. A List can store up to 2 ^ 32 - 1 elements. In Redis, you can insert (LPUSH) and pop-up (LPOP) at both ends of the list. You can also get the list of elements in the specified range and the elements of the specified index subscript. List is a flexible data structure, wh ...

Added by 00Sven on Mon, 31 Jan 2022 06:11:43 +0200

Redis learning object

1. Introduction We can see that the main data structures used in redis include: simple string (SDS), linked list, dictionary, compressed list, integer set, etc. Redis objects are implemented by these data structures. Moreover, in order to select more appropriate data structures for different objects in different use scenarios, redis has cr ...

Added by brokeDUstudent on Mon, 31 Jan 2022 00:53:48 +0200

Install jdk, redis, mysql and nginx on linux

1, jdk installation Download jdk: Official address: https://www.oracle.com/java/technologies/javase-downloads.html Unzip the downloaded package: #Use command: tar -zxvf jdk-8u291-linux-x64.tar.gz #To facilitate management after decompression: mv jdk-8u291-linux-x64/ /usr/core/jdk #I like to use core as a common (core) and immovable dire ...

Added by karlkatzke on Sun, 30 Jan 2022 20:05:46 +0200

Docker learning: customize Redis local container through Dockerfile (advanced application)

preface This lecture is from Docker series explanation courses , a separate section, Previous chapters It is mainly theory + practice. Since this chapter, it has entered the advanced application of Docker. Before browsing this article, it is recommended to understand Use of Dockerfile core commands,Optimization of Dockerfile After ...

Added by Schlo_50 on Sun, 30 Jan 2022 19:14:18 +0200

Get to know Redis-3-Redis cluster and advanced

Redis publish and subscribe Redis publish / subscribe (pub/sub) is a message communication mode: the sender (pub) sends messages and the subscriber (sub) receives messages Redis client can subscribe to any number of channels Subscribe / publish message diagram: The following figure shows the relationship between channel 1 and the thre ...

Added by DimeDropper on Sat, 29 Jan 2022 23:06:30 +0200

Redis Pipeline actual combat and serialization problem avoidance, Redis List, Set actual combat, cache needs to be updated, how to solve cache breakdown? One article takes you to advanced redis use!

preface Note: Hello, everyone. I'm my mother's eldest son, Contact information of the author QQ: 3302254385 Wechat: yxc3302254385 Make a friend! The article contains a lot of content. If you don't want to see the business scenario, you can directly find the required code cv through the directory! Creation is not easy, thank you very much!!! ...

Added by pbaker on Sat, 29 Jan 2022 17:16:26 +0200