Basic use of Jedis connection pool

jedis direct Each operation will create a jedis object. After the execution, close the connection and release it. The corresponding is a Tcp connection. jedis connection pool A batch of jedis connection objects are generated in advance and put into the connection pool. When it is necessary to operate redis, the jedis objects are borrowed from ...

Posted on Thu, 07 May 2020 13:30:10 -0400 by sunsun

How to realize the pluggable enhancement of kafka?

Missile intercept, precision defense. background Interceptor: a set of event based pluggable logic processing chains without modifying the application business logic; An interceptor similar to spring MVC: These are through the configuration of interceptors, inserted into the application, to achieve pluggable business logic modification; kafk ...

Posted on Wed, 06 May 2020 04:02:49 -0400 by mort

Five pits of redis distributed lock are really big and deep

Introduction Recently, the frequency of the project online is quite high, even working overtime for several days, the body is a little bit unable to bear the spirit and a little depressed, but the business side is pressing, so the construction period can only be hard on the scalp at present. When you are confused, what you write cannot be call ...

Posted on Tue, 21 Apr 2020 23:13:42 -0400 by mahendrakalkura

Hard core!Summary of the most complete delayed task implementation ever!Code attached (highly recommended)

How do I delay tasks? In a nutshell, go directly to today's topic. The main content of this article is as follows: What are delayed tasks? Considerably, tasks that need to be delayed are called delayed tasks. The usage scenarios for delaying tasks are as follows: The red envelope has not been checked for 24 hours and needs to be delayed in ...

Posted on Fri, 17 Apr 2020 18:11:56 -0400 by TheSeeker

Spring boot connects Redis to implement HMSET operation

This article records using spring boot starter Redis to access Redis. The Redis related configuration files are placed in the application.yml file in the Resources directory, as shown below: spring: profiles: dev,default,test redis: database: 1 host: 192.168.107.253 #redis test server port: 6379 First, add dependency in pom.xml: ...

Posted on Sat, 04 Apr 2020 16:47:28 -0400 by bigwatercar

Redis introduction and implementation of lock and count

1, About RedisRedis (Remote Dictionary Server), that is, remote dictionary service, is an open-source log and key value database written in ANSI C language, supporting network, memory based and persistent, and provides API s in multiple languages.Redis supports more value types, including string, list, set, Zset and hash. These data types supp ...

Posted on Fri, 03 Apr 2020 11:42:01 -0400 by ThoughtRiot

How to integrate Jedis with SpringBoot

Add jedis dependency Add dependency in project pom.xml file <!-- Add to jedis rely on --> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency> Add redis configuration Find the application.properties file in the project resources directory to add reids co ...

Posted on Tue, 31 Mar 2020 20:31:03 -0400 by Bunkermaster

Installation, configuration and basic use of redis

Redis installation Install under Window Download address: https://github.com/MSOpenTech/redis/releases. Redis supports 32-bit and 64 bit. This needs to be selected according to the actual situation of your system platform. Here we download the Redis-x64-xxx.zip package to disk C. after decompression, rename the fold ...

Posted on Tue, 31 Mar 2020 05:42:00 -0400 by RMcLeod

Set up eureka,gateway,admin,redis,docker series. Redis and redisapi are together

This chapter covers the redis interface Aspect signature swagger2 1. Install redis on Linux centOS server. Go to the Internet for specific installation commands. It's relatively simple. I used the config set maxmemory policy volatile LRU policy 2. Create an empty module project Add pom dependency <dependencies> <dependency> ...

Posted on Thu, 26 Mar 2020 11:10:48 -0400 by Seitan

Set up eureka,gateway,admin,redis,docker series. Redis and redisapi are together

This chapter covers the redis interface Aspect signature swagger2 1. Install redis on Linux centOS server. Go to the Internet for specific installation commands. It's relatively simple. I used the config set maxmemory policy volatile LRU policy 2. Create an empty module project Add pom dependency <dependencies> <dependency> ...

Posted on Thu, 26 Mar 2020 11:06:21 -0400 by kitaeshi