Redis learning notes - storage structure
As we all know, Redis has five storage structures: String, List, Set, Zset and Hash
catalogue
1. String
1.1 single character writing and query
1.2 batch string writing and query
1.3 deletion
1.4 set expiration time
1.5 setnx
1.6 numerical calculation
1.7 string splicing
1.8 bitmap
2. list
2.1 queue (right in left out)
2.2 stack (ri ...
Added by Dingbats on Thu, 03 Mar 2022 06:17:47 +0200
Detailed explanation and principle of redis command of redis series
catalogue
Redis
redis application scenario
Install compile & & start
redis storage structure
Five data structures of Redis
string
string basic command
string storage structure
Application of string data type in redis
list
list basic command
list storage structure
list application
hsah
Basic command
storage struct ...
Added by artied on Thu, 03 Mar 2022 03:51:03 +0200
Fastdfs installation, configuration and use
0. All my software download directories are in the software directory
mkdir -p /usr/local/fastdfs
cd /usr/local/fastdfs/
1. Install gcc on Linux machine
yum -y install cmake make gcc-c++
1, Install core library
1.1 installation version
#Official website
https://github.com/happyfish100
fastdfs-6.06.tar.gz
libfastcommon-1.0.43.tar.gz
fa ...
Added by reecec on Wed, 02 Mar 2022 07:05:53 +0200
Deep understanding of redis -- Discussion on update strategy of cache double write consistency
1.Redis cache double write consistency2. Several update strategies for database and cache consistency2.1 update the database first and then the cache2.2 delete the cache first and then update the database2.3 update the database first and then delete the cache2.4 update the cache first, and then update the database3. canal of the implementation ...
Added by Fribbles on Tue, 01 Mar 2022 15:23:52 +0200
Redis cache breakdown, cache penetration, cache avalanche solution (with code)
In our daily use of redis development, cache penetration, breakdown and avalanche are unavoidable problems. It is also a question we are often asked during the interview. Next, we will explain a variety of solutions to these three kinds of problems.
Buffer breakdown
Cache breakdown means that a Key is very hot and is accessed with high ...
Added by mecha_godzilla on Sun, 27 Feb 2022 08:42:11 +0200
Redis 06 redis Zset structure and Application
1 zset
zset (ordered set) is the most frequently asked data structure in Redis. This ordered set is similar to the set container of C + +, but the underlying structure is different. The underlying structure of C + + is implemented using RB tree (red black tree). Unlike zset, which is implemented using a hop table.
On the one hand, zset ensure ...
Added by svenski on Sun, 27 Feb 2022 07:16:40 +0200
Redis -- sentinel mode of cluster
๐ข๐ข๐ข๐ฃ๐ฃ๐ฃ
Hello! Hello, everyone. I'm [one heart classmate], a highly motivated [Java domain blogger]! ๐๐๐
โจ Writing style of [one heart students]: I like to explain every knowledge point in [easy to understand] writing, rather than using [tall and tall] official statement.
โจ The field of the blog is the learning of back-end te ...
Added by wilburforce on Sun, 27 Feb 2022 03:36:21 +0200
[redis series] redis learning VI, redis transaction processing and monitoring transactions
[redis series] redis learning VI, redis transaction processing and monitoring transactionsWrite in frontThe transactions we have learned are atomic, but the execution of multiple instructions in redis transactions does not guarantee atomicityEssence of redis transactionIt is a set of commands. All commands in a transaction will be serialized. I ...
Added by thewabbit1 on Sat, 26 Feb 2022 16:22:44 +0200
Redis cluster (master-slave replication, sentinel mode, cluster mode)
catalogue
1, Redis master-slave replication
1.1 definitions
1.2 role of master-slave replication
1.3 Redis master-slave replication process
1.4 set up Redis master-slave replication
Experimental environment
Install redis
Modify redis configuration file (Master node operation)
Modify redis configuration file (Slave node operation)
1.5 ...
Added by Stevan on Fri, 25 Feb 2022 18:43:20 +0200
Basic single sign on in distributed environment
Knowledge premise
Have a certain understanding of distributed scenariosTo understand the network domain name, you need to know that different URLs of primary or top-level domain names cannot share cookie s
Environment construction
Here, we create three spring boot projects, all with dynamic template thymeleaf, which is convenient for us to t ...
Added by reecec on Fri, 25 Feb 2022 11:17:16 +0200