redis-sentinel cluster (k8s script)
1 redis backup
It is recommended that rdb and aof be turned on simultaneously.rdb is on by default and aof is off by default.Refer to rdb and aof for additional details http://blog.csdn.net/guoxingege/article/details/48780745
1.1Redis.confConfiguration Details
requirepass 123456
## The following is the rdb confi ...
Posted by Alt_F4 on Tue, 14 Jul 2020 16:40:04 +0200
docker builds redis cluster
docker builds redis cluster
1. Download the redis image
docker pull redis
2. Prepare the configuration fileRedis.conf
mkdir /home/docker/redis/
wget https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf -O /home/docker/redis/redis.conf
cd /home/docker/redis/
sed -i 's/# slaveof <masterip> <masterport>/slaveof red ...
Posted by legacyblade on Mon, 13 Jul 2020 16:48:41 +0200
Common methods of current limiting in high concurrency system
In the development of high concurrency system, there are four tools to protect the system: diffluence, cache, degradation and flow restriction. Based on the author's experience, this paper introduces the related concepts, algorithms and conventional implementation of current limiting.
Concept interp ...
Posted by plapeyre on Mon, 29 Jun 2020 04:11:04 +0200
[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