RedisTemplate common collection instructions opsForList

Reprinted from: https://blog.csdn.net/XinhuaShuDiao/article/details/84906382 1,leftPush(K key, V value) Add the element value to the left of the variable. redisTemplate.opsForList().leftPush("list","a"); redisTemplate.opsForList().leftPush("list","b"); redisTemplate.opsForList().leftPush("list","c"); 2,index(K key, long index) Gets the val ...

Posted by spelman07 on Tue, 19 Apr 2022 07:54:14 +0300

springboot+shiro+redis multi terminal login: single sign on + mobile terminal and PC terminal online at the same time

Reference article: Single sign on: https://mp.weixin.qq.com/s/DGFFPl93kZxS5G_DSFTBDA Multi terminal login: https://blog.csdn.net/zhourenfei17/article/details/88826911 1, Foreword A recent springboot project called for adding some app functions. Then the first thing to change is the login function. My original login was just web login, which r ...

Posted by killswitchfilter on Tue, 19 Apr 2022 05:13:45 +0300

When starting the service, load the dictionary table data into redis

1, Use tools Back end development tool: IntelliJ IDEA 2020.3Front end development tool: Microsoft VS Code 1.50.1Database tool: Navicat Premium 15.0.20Redis visualization tool: RDM 2, Create Maven project Because the project includes multiple parts such as user, account and dictionary, and each part establishes modules respectively, the outer ...

Posted by RoBoTTo on Mon, 18 Apr 2022 01:37:27 +0300

Crazy God said Redis learning summary

Crazy God said Redis learning summary ① Introduction to redis I Description of Redis 1. What is redis? Remote Dictionary Server remote service dictionary is an open source log type, key value database written in ANSI C language and supporting network. It can be based on memory or persistent. 2. What can redis do? Memory storage, persi ...

Posted by corillo181 on Sun, 17 Apr 2022 17:50:35 +0300

Production and consumption of dyno queues distributed delay queue

Production and consumption of dyno queues distributed delay queue 0x00 summary In this series, we will focus on the key modules considered in the design of distributed delay queue, intersperse some characteristics and implementation methods of message queue, and take a specific look at the aspects of designing and implementing a distribut ...

Posted by metallord on Sun, 17 Apr 2022 06:34:37 +0300

Spring Boot - distributed lock Redisson

http://events.jianshu.io/p/5b21d978de13 Catalog Spring Cloud Alibaba microservice series articles 0. Spring Cloud Alibaba micro service series - preparations1. Spring Cloud Alibaba micro service series - service registry Nacos2. Spring Cloud Alibaba micro service series - configuration center Nacos3. Spring Cloud Alibaba micro service series ...

Posted by Integra_grrl on Sun, 17 Apr 2022 06:10:23 +0300

How to handle repeated (concurrent) requests gracefully?

In some cases, some user requests may be sent repeatedly. If it is a query operation, it will not be a big problem, but some of them involve write operations. Once repeated, it may lead to serious consequences. For example, the transaction interface may place repeated orders if repeated requests. Repeated scenarios may be: The hacker inter ...

Posted by pp4sale on Sun, 17 Apr 2022 01:11:51 +0300

Docker Compose: deploy SpringBoot applications (including mysql, redis, Nacos and rabbitmq)

catalogue preface Docker Compose installation, common commands and template files To use Docker Compose Deploying SpringBoot applications using Docker Compose 1. Operation configuration requirements 2. Containerized SpringBoot application 3. SpringBoot dependency service script  devecimag-docker-compose-env.yml Parameter variable env ...

Posted by jesseledwards on Sat, 16 Apr 2022 22:12:46 +0300

Spring Boot demo Series: Redis cache

1 Overview This article demonstrates how to use Redis as a cache in Spring Boot. The specific contents include: Environment construction Project construction test 2 Environment Redis MySQL MyBatis Plus 3. Redis installation Redis installation is very simple. Take Manjaro as an example and install it directly in paru: paru -S redis Ubuntu, ...

Posted by rainerpl on Sat, 16 Apr 2022 04:57:19 +0300

Online education business notes

Online education business notes 03 - lecturer banner management module 1, New banner micro service 1. Create a sub module service CMS under the service module 2. Generate banner code using code generator 2.1. Alicloud address of sql file https://cor2022314.oss-cn-beijing.aliyuncs.com/guli_cms.sql 2.2. Mybatis plus code generator package cod ...

Posted by BobLennon on Thu, 14 Apr 2022 01:59:45 +0300