Gospel of Redis lazyfree big key deletion
background
Severe users of redis should have encountered the use of DEL commands to delete larger keys, or when using FLUSHDB and FLUSHALL to delete databases containing a large number of keys, resulting in redis blocking; in addition, redis in cleaning up expired data and eliminating memory overrun data, if it happens to hit a large number of ...
Posted by maddali on Sat, 11 May 2019 02:38:55 -0700
Analysis of Redis Distributed Lock Principle
Redis Distributed Lock Command Setnx if and only if the key does not exist. If the given key already exists, setnx does nothing. Setnx is the abbreviation of "set if not exists" (if not, set). Setnx has atomicity. get set first gets the old value, then sets the new value, and returns the old value of the key, which i ...
Posted by errtu on Fri, 10 May 2019 23:30:02 -0700
Redisson: Redis Official Wheel for Building Distributed Locks
Integrating Redisson with SpringBoot
I. Introducing Dependence
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
<version>3.10.6</version>
</dependency>
2. Adding configuration ...
Posted by compt on Fri, 10 May 2019 14:51:43 -0700
Redis Basic Data Type-set (Collection)
Article Directory
Set (set)
Methods in set
sadd
smembers
sismember
scard
spop
sunion
srandmenber
sinter
srem
smove
sdiffstore
sdiff
sscan
sinterstore
sunionstore
Set (set)
Redis Set is an unordered collection of string types.Collection members are unique, which means that no duplicate data can appear in the collection. ...
Posted by rsammy on Fri, 10 May 2019 11:14:04 -0700
TeamTalk deployment details (skipping pits)
I. Deployment environment
System: centos7 X64 bit (32 bit unsupported) core version
II. Deployment process
The download address of the project is https://github.com/mogujie/TeamTalk.git, which is a version of the project three years ago. Some of the scripts have 404 addresses, which is the source part of mariadb, and need to ...
Posted by pahikua on Fri, 10 May 2019 03:38:39 -0700
API Gateway [gateway] 3
Recently, in the company API gateway rewrite, the company uses serverMesh for service registration, invocation, here combined with the previous study of API Gateway Services for a simple summary and analysis. Since a lot of nginx-related stuff has been used, here is a record:
Using openresty in nginx
Add nginx module
Edit the conf configurat ...
Posted by toma42 on Fri, 10 May 2019 00:48:40 -0700
Summary of redis use (redis client use) NoSQL
Summary of redis use (1) (redis client use) NoSQLNoSQLFrom Baidu Encyclopedia
NoSQL, refers generally to non-relational databases.With the rise of Internet web2.0 websites, traditional relational databases have been unable to cope with web2.0 websites, especially Web 2.0 pure dynamic websites of super-large-scale and highly concurrent SNS type, ...
Posted by aaronxbond on Wed, 08 May 2019 23:12:38 -0700
Spring Boot 8.5 Data Cache
We know that the bottleneck of a program is the database. We also know that the speed of memory is much faster than that of hard disk. When we need to retrieve the same data repeatedly, we request database or remote service again and again, which leads to a large amount of time consuming in data query or remote method invocation ...
Posted by tempa on Sat, 04 May 2019 01:10:38 -0700
redis geo geographic location system application warfare case
Proper noungeographic geographyRadius radius range; radius (distance); circular area measured by radius
redis GEO IMPLEMENTATION
The redis GEO implementation mainly includes the following two technologies:
1. Use geohash to save the coordinates of geographic location.2. Use sort set to save the set of geographical location. (emphasis: sor ...
Posted by fitzromeo on Sat, 04 May 2019 00:40:38 -0700
JAVA:SSM\Distributed CacheRedis\/spring data redis
Redis Distributed Cache
Redis is an open source Key-Value database that stores data in memory and is written in C. Enterprise development typically uses redis for caching.
operation flow
Get data from redis first, return directly if you get data, you don't need to access the database. If you can't get data, you can query ...
Posted by gurhy on Sun, 28 Apr 2019 23:30:36 -0700