Replacing hashmap perfectly, SpringBoot integrates Redis cache DB data
1, Baidu Encyclopedia
Redis is a key value storage system. Similar to memcached, it supports relatively more stored value types, including string (string), list (linked list), set (set), zset(sorted set -- ordered set) and hash (hash type). These data types support push/pop, add/remove, intersection, union, difference and richer operations ...
Added by akillez on Mon, 10 Jan 2022 01:25:59 +0200
Bloom filter and its implementation
1, Three ways of weight removal
1.HashSet Use the features of HashSet in java that cannot be repeated to remove duplicates. The advantage is easy to understand. Easy to use. Disadvantages: large memory consumption and low performance. 2.Redis de duplication Use Redis's set for de duplication. The advantage is that it is fast (Redis itself is ...
Added by NewPHP_Coder on Sun, 09 Jan 2022 08:55:57 +0200
Basics: introduction to distributed locks
catalogue
Fundamentals: distributed locks
Why do I need distributed locks?
Characteristics of distributed locks
Common scenarios
Redis implements distributed locks
Redisson distributed lock entry practice
reference
Fundamentals: distributed locks
The synchronized keyword and ReentrantLock reentrant lock in Java can control concurrent ...
Added by lauxanh on Sun, 09 Jan 2022 06:10:50 +0200
[Java] Redis explanation
Crazy God video address
https://www.bilibili.com/video/BV1S54y1R7SB
1,NoSQL
1.1 why use Nosql
Have some chicken soup first
We are now in 2020, in the era of big data;The general database of big data cannot be analyzed!Force yourself to study! Only continuous learning! This is the only law to survive in this society!Study or for yo ...
Added by p0pb0b on Sat, 08 Jan 2022 07:13:51 +0200
Redis OM .NET Redis object mapping framework
Redis OM
Redis OM is an Object Mapping framework officially launched by redis, that is, Object Mapping. It allows developers to operate redis data more simply and conveniently. The data stored in redis is abstracted as Object Mapping and supports object-based redis data persistence and streaming query operations.
Currently, only four developm ...
Added by Cogen2 on Fri, 07 Jan 2022 09:17:35 +0200
Redis downtime fast recovery
1. What is a sentry
Sentry monitors the operation of Redis system. It is an independent process with two functions:
Monitor whether the master database and slave database are running normally;After the master data fails, it will automatically convert the slave database to the master database;
2. Principle
Structure of a single sentry:
Ar ...
Added by blade_922 on Thu, 06 Jan 2022 00:35:04 +0200
Basic KEY operations of five common string types in Redis
redis string operation
1.redis string type
String string type, commonly used for plain text
List list type, which is often used in a warehouse to delete a data after it is taken away
hash type, which is commonly used to import mysql data into redis
Set set type, which is used to compare different sets
2. Common redis instructions
Keys ...
Added by apsomum on Wed, 05 Jan 2022 21:04:14 +0200
springboot 2. Getting started with X - springboot2 X annotation based cache implementation and increase expiration time
In the evening, I went to a Honda car club, the civic of Yishui. Although I'm not the owner of Honda, I like cars very much, so I would go to join in the fun. The civic red in the hatchback is really handsome. Hahaha, I didn't get home until nearly ten o'clock in the evening. It's twelve o'clock after writing this article. Well, no more nonsens ...
Added by Nick~C on Wed, 05 Jan 2022 01:08:05 +0200
Analysis of duplicate order number caused by improper use of online redis distributed lock
background
The day before yesterday, my colleague reported that there was a problem with the redis distributed lock, resulting in duplicate order numbers. Later, everything was normal after it was replaced with reission. Based on this phenomenon, this paper analyzes it
Problem driven
The following code is analyzed and three problems are foun ...
Added by bluetonic on Tue, 04 Jan 2022 19:27:01 +0200
Actual combat: breakpoint sequel? File transfer in seconds? Upload large files manually
Hello, ladies and gentlemen. Today I share another practical article with you. I hope you can like it.
Appetizer
Recently, I received a new demand to upload about 2G video files. I tried it with the OSS of the test environment. It takes more than ten minutes to upload. Considering the company's resources, I resolutely gave up the scheme.
Whe ...
Added by kickoff3pm on Tue, 04 Jan 2022 06:13:19 +0200