[Distributed Lock] 03-Redisson for RedLock principles
Preface
You've learned the principles of Redission reentrant locks and fair locks before, and then you'll see how Redission implements RedLock.
RedLock principle
RedLock is a redis-based distributed lock that guarantees the following features:
Mutual exclusion: At any time, only one client can hold a lock; avoid deadlocks:
When the clie ...
Posted by Shendemiar on Sat, 27 Jun 2020 02:29:15 +0200
A tutorial of using redis in golang
Original link: https://blog.csdn.net/wangshubo1989/article/details/75050024/
Life goes on, go go go!!!
Previously, I introduced how to use sqlite3 in golang: <Go practice - go language operates sqlite database (The way to go)>
Today I want to share with you how to use redis database in golang.
##What is redis
Official website:https:/ ...
Posted by phynias on Fri, 26 Jun 2020 10:36:55 +0200
rodert single row learning redis advanced [silver 1]
redis silver I
To make a digression, recently, the epidemic situation in the capital of China is very serious. We are all in the current of the times. This is not for individuals. I hope you can protect yourself and have fun every day.
[toc]
preface
Statement: refer to the Internet, and leave a message if there is any dispute. Standing on the s ...
Posted by Stanley90 on Thu, 25 Jun 2020 11:19:57 +0200
Redis Basic Application Demo
Article catalog
1, Redis common command operations
1. String type
2. Hash type
3. List type list
4. Unordered set
5. Ordered sort
2, Distributed shared session
3, Remote login reminder offline
4, Register SMS verification code
1, Redis common command operations
1. String type
Assignment comm ...
Posted by sosha on Thu, 25 Jun 2020 09:51:27 +0200
Docker 2020 detailed tutorial and summary
Super long warning!!! It is recommended to look at the catalogue first
Introduction to docker and related cases
It's not easy to summarize. If you agree, please like it~
If there is any mistake, please correct it!
Docker directory
Document introduction
Docker overview
Why does Docker appear?
Docker ...
Posted by tron00 on Thu, 25 Jun 2020 05:47:30 +0200
Spring boot redis cache sets the effective time and auto refresh cache, and the auto refresh time is set in the annotation
Spring boot redis cache sets the effective time and auto refresh cache, and the auto refresh time is set in the annotation.
preface
This article mainly supplements the spring redis cache used by small partners. Spring redis cache is a general solution. Although spring redis cache has been very power ...
Posted by theverychap on Tue, 23 Jun 2020 11:00:59 +0200
Redis data type, transaction and Jedis operation redis
Five basic types of Redis
Note: Note arrangement source: B station UP master maniac said Java
Official document: Redis is an open source (BSD licensed) in memory data structure storage system, which can be used as database, cache and message middleware.
It supports many types of data structures, such ...
Posted by pplexr on Mon, 22 Jun 2020 10:19:45 +0200
Spring boot integrates redis to realize message queue -- asynchronous receiving and multithreading sending
1, Publish message to redis
1. Create a new springboot project
Create a new redis queue for the springboot project.
2. Introduce dependency
The introduction of related dependencies, in which lombok is used, requires the installation of lombok plug-ins.
<?xml version="1.0" encoding="UTF-8"?>
...
Posted by sixdollarshirt on Thu, 18 Jun 2020 12:28:50 +0200
Spring Boot - In-depth Principles - Customize starter
2.2.3 Custom starter
Spring Boot is made up of many Starters (a series of starter plug-ins that are automatically configured), and it is also because of starter that Spring Boot is popular.
starter is a very important part of Spring Boot and can be understood as a pluggable plug-in because it allows developers who use a feature to ignore the p ...
Posted by moe on Mon, 15 Jun 2020 21:25:55 +0200
Spring cloud: Advanced Application of Spring Cloud Gateway
Fusing
Current limiting
retry
1. Speed limit router
Speed limit is one of the common means in high concurrency scenarios, which can effectively guarantee the overall stability of the service. Spring Cloud Gateway provides a Redis based flow limit scheme. So we need to add the corresponding dependency package spring boot starter data R ...
Posted by llangres on Fri, 12 Jun 2020 08:28:01 +0200