This article uses Redis to achieve the article's likes, and arranges from the number of likes to the low.
The implementation language is JAVA, so the package to be used is jedis.
Function realization analysis.
Redis has five data type ...
Posted on Tue, 31 Mar 2020 11:57:37 -0700 by Rai_de
Java and spring connect Redis stand-alone version and cluster version respectively
1, Java connection Redis
1.1 Java connection Redis standalone
1.2 Java connection to Redis cluster
2, spring stores Redis connection objects
2.1 interface packaging
2.2 defining implementation classes
2.3 easy to co ...
Posted on Tue, 10 Mar 2020 22:29:43 -0700 by shamoon
Redis can not only be used as a cache server, but also as a message queue. Its list type is inherently supported as a message queue. As shown in the figure below:
Because Redis's list is implemented by using a two-way linked list, which saves the head and tail nodes, it is very fast to insert elements on both sides of the list.
So you can d ...
Posted on Wed, 15 Jan 2020 01:59:04 -0800 by Clerma
Introduction to Redis
Redis is an open source, in-memory, high-performance data storage system that can be used as a database, cache, and messaging middleware.
Redis supports many types of data structures, such as string, hashes, lists, sets, sortedSets, and so on.
Redis has built ...
Posted on Fri, 10 Jan 2020 17:16:18 -0800 by mountaindave
Redis has a lot of data structures: string, hash, list, set, etc. but in the actual delivery, we often save the object in redis, so the key value pairs are more commonly used.
Redis needs to satisfy serialization when saving objects. Due to the low efficiency of java's native serialization method, the protostaff serialization ...
Posted on Wed, 01 Jan 2020 14:02:53 -0800 by thedotproduct
Because of the load balancing of multiple servers, when obtaining the sessionId of the client, it will be different for the first time and the second time. Because of the load balancing, there are at least two servers in your server. If the first request and the second request of the client are not the same server, the sessionId will change. To ...
Posted on Sun, 29 Dec 2019 09:04:08 -0800 by itaym02
redis building under linux
System configuration: cent os 7
redis version: 3.2.8
1. Use the command to download redis:
tar zxvf redis-3.2.8.tar.gz
3. After decompression, enter the redis directory
5. Set related configura ...
Posted on Mon, 16 Dec 2019 08:48:22 -0800 by danielle
Spring Boot 2 integrates Redis (1)
Spring Boot 2.0.3 simple integration Redis
IDEA Spring Initialzr creation project: select Redis dependency
// There is no data for the artifactId under the dependency of spring boot version 1.5
Posted on Tue, 10 Dec 2019 08:23:29 -0800 by KaFF
In business requirements, counters are often used: for example, a mobile phone number is limited to send 5 SMS messages a day, an interface is limited to how many requests a minute, an interface is limited to how many calls a day, and so on. The above requirements can be easily realized by using the Incr auto increment command of Redis. For exa ...
Posted on Sun, 08 Dec 2019 10:06:36 -0800 by many_pets
Dependencies and configuration
Posted on Tue, 03 Dec 2019 12:17:53 -0800 by sparq