Principle and practice of apache common pool2
brief introduction
As the name suggests, object pool is the pool where objects are stored. Like thread pool, database connection pool and http connection pool, it is a typical pool design idea.
The advantage of object pool is that it can centrally manage the objects in the pool and reduce the frequent creation and destruction of long-term obj ...
Posted by s-mack on Fri, 08 Oct 2021 02:04:26 -0700
StackExchange.Redis Timeout performing timeout problem
In a recent project, I used. net core 2.1, and then Redis for caching. The cache related package was written by colleagues, and the driver used was StackExchange.Redis version 2.0.571. I've always heard that there was a TimeOut bug when the driver was concurrent. After the project was almost developed, I tested it and simply simulated 30 users' ...
Posted by RobOgden on Thu, 07 Oct 2021 01:12:31 -0700
Analysis and use of Redis five data structures and three advanced data structures
1, Foreword
The most important and fundamental aspect of Redis is its rich data structure. The reason why Redis stands out is that it has rich data structure and can support a variety of scenarios. Moreover, Redis's data structure implementation and application scenarios are quite common in the interview. Next, let's talk about Redis's data st ...
Posted by wanted420 on Tue, 05 Oct 2021 17:03:07 -0700
Redis basic commands and Java API operations
1, Redis basic commands
1.1. Operation of key
Keys *: view all keys in the current library (matching: keys *1) exists key: determines whether a key exists type key: check the type of your key del key: deletes the specified key data unlink key: select non blocking deletion according to value (only delete keys from the metadata ...
Posted by racing_fire on Mon, 04 Oct 2021 20:08:37 -0700
Shangsi Valley grain college learning notes 8 -- integrate NUXT foreground page, and redis cache has been integrated
Server side rendering technology NUXT
What is server-side rendering
Server side rendering, also known as SSR (Server Side Render), completes the content of the page on the server side, rather than obtaining data through AJAX on the client side.
The advantages of server-side rendering (SSR) are: better SEO, because the search engine crawl ...
Posted by nagrgk on Mon, 04 Oct 2021 13:10:14 -0700
Spring session integrates redis principle to find out the cause of failure
After a spring session is configured on the Internet and redis is integrated as a session, it is found that the session acquisition fails and there is value in redis. The login module can also be obtained, but other services cannot be obtained. Record it and follow the source code to find out why it failed auth service configuration
Introduce ...
Posted by Kunax on Sun, 03 Oct 2021 13:29:31 -0700
JWT + interceptor is used in SpringBoot to realize login authentication
The old method has disadvantages
The previous strategy was the idea of UUID + redis + interceptor.
After verifying that the roomid and password match, the server uses UUID to generate a string as a token, then writes a token (roomid) to the Redis service, sets the expiration time to 20 minutes, and returns the token to the client through a re ...
Posted by rn14 on Sun, 03 Oct 2021 12:25:19 -0700
[Java from 0 to architect] Redis - Advanced (pipline, publish and subscribe, Bitmap, hyperlog, GEO)
Java from 0 to architect Directory: [Java from 0 to architect] learning record
Some concepts: PV (Page View) visits, UV (Unique Visitor) independent visitors
Basic use of Jedis
Reference article: Redis notes Java operations redis (Jedis)
<dependencies>
<dependency>
<groupId>redis.clients</group ...
Posted by alphamic on Sun, 03 Oct 2021 12:21:11 -0700
Redis data type
1, String data type
Overview: string is the most basic type of redis. It can store up to 512MB of data. String type is binary secure, that is, it can store any data, such as numbers, pictures, serialized objects, etc
1. SET/GET/APPEND/STRLEN
redis 127.0.0.1:6379> exists mykey #Judge whether the key exists, return 1 if it exists, ...
Posted by dvd420 on Sat, 25 Sep 2021 03:27:13 -0700
Redis installation and cluster deployment
1, redis compilation and installation
Download the installation package, unzip it and compile it Edit the script file of the built-in installer and comment the following
[root@server1 redis-6.2.4]# cd utils/
[root@server1 utils]# vim install_server.sh
[root@server1 utils]# ./install_server.sh xs ##Execute installation script
Afte ...
Posted by idweb on Fri, 24 Sep 2021 08:52:33 -0700