Redis Learning Notes: Java uses Jedis to connect Redis instances (the difference between using String and hash types to store objects)
Foreword: When we need to operate on redis, we need to start the redis-server service first, then start the redis-cli client to connect to the redis server to operate on it, or we can connect redis directly with the visual operation tool to operate on it.But what should we do if we need java programs to ...
Posted by boonika on Thu, 11 Jun 2020 18:11:27 +0200
spring-boot blog system
Spring-boot Personal Blog System
GitHub: https://github.com/Werdio66/myblog
1. Environmental Construction
gradle dependencies:
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.sp ...
Posted by stevietee on Mon, 08 Jun 2020 03:22:50 +0200
How to implement login and mutual kick in spring security oauth2
Background
An account can only be logged in at one place. Similar business requirements are very common in existing post management systems. However, in the original spring security oauth2 token method process (so-called login) can not meet similar needs.
Let's first look at TokenEndpoint's method flow
The client accesses the / oauth/token int ...
Posted by cliffboss on Wed, 27 May 2020 10:37:55 +0200
SpringBoot open source blog project based on Fly community template
1. Official website address
Demo address on official website https://fly.layui.com/
Template download address: https://www.layui.com/template/fly/
Detailed development documents: https://www.sunnyblog.top/index.html?typeId=1260457825721647104
2. Technology stack
Development tool Idea
Database design
JDK version Java8
Database MySQL v5. ...
Posted by chiefmonkey on Mon, 25 May 2020 16:15:07 +0200
Here comes the redis dry goods you want! Redis cluster model construction and principle explanation
Source network, only for learning, if there is infringement, please contact delete.
Before Redis 3.0, sentinel mechanism was used to monitor the status of each node.
Redis Cluster is redis's distributed solution, which was officially launched in version 3.0, effectively solving redis's distributed requirements. When encountering single machin ...
Posted by nigelbashford on Mon, 25 May 2020 10:23:23 +0200
springBoot integrated redisson for distributed locks
scene
The company has a piece of business that needs to run the timer business to process data. Background uses springBoot to develop, springBoot integration timer task is very simple, use
Scheduled is configured to use cron, and a business is executed 45 minutes per hour, because the background is cluster deployed, and the front end is respon ...
Posted by shya on Fri, 15 May 2020 05:02:36 +0200
Do not over rely on Redis's expired monitoring
Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on!
Redis expired monitoring scenario
In the business, there is a need to wait for a certain time to execute a certain behavior, such as closing an order after 30 minutes. There a ...
Posted by sujithfem on Thu, 14 May 2020 10:57:10 +0200
How to produce a simple message using RabbitMQ
A recent scenario in business is that if a user has not paid for 30 minutes after placing an order in a store, the order needs to be disposed of, either deleted or marked as invalid. Why?
1. Inventory, the user will lock an inventory after placing an order. If the user does not pay, it will occupy the inventory and affect other users'purchase. ...
Posted by cuboidgraphix on Mon, 11 May 2020 04:11:56 +0200
Redis installation deployment application [part]
Linux Installation of Redis
1. Preparing the installation package
2. Unzip the installation packagetar zxvf redis-5.0.5.tar.gz
3. Enter the folder you just unzipped and enter the make command
4. After waiting for the above process to complete, enter the make install command
5. Run. / Redis server under the redis/src / folder to start Redis
...
Posted by Bob_PHP_Builder on Sat, 09 May 2020 19:12:10 +0200
[SpringBoot Basic Series] Implement a custom configuration loader (application)
[SpringBoot Basic Series] Implement a custom configuration loader (application)
The @Value annotation is provided in Spring to bind configurations so that they can be read from the configuration file and assigned to member variables; sometimes, our configurations may not be in the configuration file, if they existDb/redis/other files/third-p ...
Posted by McManCSU on Thu, 07 May 2020 04:00:28 +0200