Spring code tips that you can't put down
I happen to have some research on spring source code. Combined with my practical work experience in recent years, I summarize the knowledge points I think are good in spring. I hope it will be helpful to you.
Seek attention Welcome to pay attention to my B station accountStation B account number If the content can help you, you are welcome to ...
Added by RockRunner on Fri, 11 Feb 2022 02:24:16 +0200
python redis tutorial
1. Install redis module package in Python
pip install redis
2. Connect Python to redis
Redis provides two classes: redis and StrictRedis. StrictRedis is used to implement most official commands. Redis is a subclass of StrictRedis, which is used to use the old version backward. The result retrieved by redis defaults to bytes. We can set deco ...
Added by landung on Thu, 10 Feb 2022 23:37:20 +0200
springbootCache and Redis caching mechanism
brief introduction
I want to develop a social networking site. Storing friends list on social networking sites has become a big problem in the development process.
If I want to save every user's friend information, how should I save it?
The user's id corresponds to the friend's id. such a message is a friend relationship map. This relati ...
Added by Magena Cadmar on Thu, 10 Feb 2022 23:32:20 +0200
Introduction to Redis and five data types
1, NoSQL
1.1 overview
Relational database: a database created based on a relational model. The so-called relationship model is "one to one, one to many, many to many".
NoSQL = Not Only SQL, meaning: not just SQL; Generally refers to non relational database. Non relational database:
A column of data is stored in the model. The rela ...
Added by Randy Jackson on Thu, 10 Feb 2022 20:03:14 +0200
Redis data type
Redis data type
Redis supports five data types: string, hash, list, set and Zset.
String (string)
As like as two peas, string is the most basic type of redis. You can understand it as a type that is exactly the same as Memcached, and a key corresponds to a value.
The string type is binary safe. This means that the redis string can con ...
Added by jimdavidson on Thu, 10 Feb 2022 19:05:27 +0200
Redis big key problem and scan command
brief introduction
Didn't you write an article earlier An implementation of like function Your article
Some problems were also raised at that time, and today we will solve some of them
start
Let's talk about the background first to avoid the confusion of not reading the previous article
Let's talk about the like function. Here we mainly so ...
Added by William on Thu, 10 Feb 2022 03:59:38 +0200
MyBatis L2 cache Association refresh implementation
1. Introduction to MyBatis cache
Mybatis supports caching, but without configuration, it only enables the L1 cache by default, and the L2 cache needs to be manually enabled.
The L1 cache is only relative to the same SqlSession. That is, for the same transaction, execute the same query method of the same Mapper multiple times. After the fir ...
Added by tready29483 on Thu, 10 Feb 2022 03:20:30 +0200
KubeSphere - set up Redis cluster
1, KubeSphere - set up Redis cluster
In the previous article, we introduced how to use KubeSphere to create mysql master-slave replication structure in k8s. In this article, we use KubeSphere to build Redis cluster in k8s. The following is the address of the previous article:
https://blog.csdn.net/qq_43692950/article/details/122819844
B ...
Added by mafkeesxxx on Wed, 09 Feb 2022 20:43:27 +0200
springMVC, spring, control inversion, dependency injection, MyBatis, springBoot, springSecurity, Java multithreading, redis (buffer breakdown, penetration, avalanche, hotspot dataset failure)
What is spring MVC
springMVC Is based on MVC Architecture to simplify WEB Application framework; A framework that belongs to the presentation layer.
How spring MVC works
The user sends a request to the front-end controller. The front-end controller receives the request and calls the processor mapper. The processor mapper calls the processor ...
Added by Riotblade on Wed, 09 Feb 2022 14:57:14 +0200
Basic knowledge of Redis
Redis installation
Download address: http://redis.io/download
Installation steps:
# gcc installation
yum install gcc
# Download redis-5.0.3 tar. Put Gz in the / usr/local folder and unzip it
wget http://download.redis.io/releases/redis-5.0.3.tar.gz
tar xzf redis-5.0.3.tar.gz
cd redis-5.0.3
# Enter the extracted redis-5.0.3 directory for com ...
Added by helpmeplease2 on Tue, 08 Feb 2022 23:44:01 +0200