Springboot-24 advanced feature - cache (JSR107, cache abstraction, Cacheable, redis integration)
Purpose:
Read cache to reduce server pressure and improve performance;Temporary data, such as validity verification code;
1,JSR107
(1) java caching defines five core interfaces
Cache provider: create, configure, obtain, manage and control the cache manager. An application can access multiple cache providers at runtime;chchemanager: create, ...
Posted by timmytock on Sat, 26 Feb 2022 09:53:18 +0100
[redis: I] data structure and basic commands
strings
String type is the most basic data type of redis. Other types are based on it. In short, the value of string type means string. We can store simple and complex types of strings (json, xml), numbers, binary files (pictures, audio, etc.). But not more than 512M.
Common commands
Set value
set key value [ex] [px] [nx|xx]
redis>set he ...
Posted by dimxasnewfrozen on Fri, 25 Feb 2022 10:02:34 +0100
Micro service design guidance - tips for improving Redis circular writing by 10 times
brief introduction
The architecture with microservices does not represent good performance, but the architecture using microservices must require good performance. This sentence is not contradictory. The contradiction is that many people think that microservice architecture represents high concurrency, but it is not. We have the theory of &quo ...
Posted by enlight on Fri, 25 Feb 2022 06:25:21 +0100
Redis data type
catalogue
1, String data type
2, List data type
3, Hash data type (hash type)
4, Set data type (unordered set)
5, Sorted Set data type (zset, ordered set)
1, String data type
Overview: string is the most basic type of redis, which can store up to 512MB of data. String type is binary safe, that is, it can store any data, such as numbers, ...
Posted by kingpin393 on Wed, 23 Feb 2022 14:41:04 +0100
Second kill based on redis
For single process implementation
@RequestMapping("/miaosha1")
@ResponseBody
public String miaosha1() {
synchronized (this){
Map<String,Object> mapListmaps = new HashMap<>();
//Get inventory value in redis
int kucun = Integer.valueOf(redisUtil.getStrKV("kucun").toString()) ...
Posted by smudge on Tue, 22 Feb 2022 04:28:30 +0100
Basic operation of pymysql
Database Introduction
concept
A Database for storing data, which organizes, stores and manages data according to a certain data structure.
classification
Relational databases: mysql, sql server, oracle, DB2, etc. Non-relational databases: redis, etc.
How python operates on databases
pymysql: pure Python development, supporting python2 and ...
Posted by bam2550 on Mon, 21 Feb 2022 18:37:18 +0100
Introduction to the use of Lua script in Redis
Catch all Redis Lua script concurrent atomic combination operations
1. Preface
Redis is a high-performance KV in memory database. In addition to its basic role as a caching middleware, it also has many uses, such as what Pangge shared before Redis GEO geographic location information calculation . Redis provides a wealth of commands for us to ...
Posted by incarnate on Sat, 19 Feb 2022 23:55:40 +0100
Summarize the common commands of Redis operation under Linux
1. Install redis for Ubuntu / CentOS (redis5.0.8 does not need to update gcc)
https://blog.csdn.net/qq_34246965/article/details/115269542
2. Start redis service and verify
If it is in the bin directory under the redis file, the command: redis-server /etc/redis/redis.conf # start redis service
If it is in the redis file /bin/redis-server /et ...
Posted by killah on Sat, 19 Feb 2022 20:39:44 +0100
Redis distributed Session
Redis distributed Session
Spring-Session
Spring seesion solves the problem of sharing distributed session s.
introduce
Spring Session is one of the projects of spring. GitHub address: https://github.com/spring-pro.
Spring Session provides a perfect solution for creating and managing servlet httpsessions.
function
spring Se ...
Posted by mattcass on Sat, 19 Feb 2022 14:21:56 +0100
redis-3.redis's message subscription, pipeline, transaction, modules, bloom filter and cache LRU
redis
pipeline
Beer theory, for example, there are 24 bottles of beer in the store. You can't take one bottle home and drink another. You need to find a box to carry the beer home together The buffer mechanism can also be understood in this way to avoid calling back and forth
A request / response server can handle new requests even ...
Posted by linfidel on Sat, 19 Feb 2022 06:15:41 +0100