Five common data types of centos7 redis

Five common data types of centos7 redis Redis key commandeffectkey *View all key s in the current libraryexists keyDetermine whether a key existstype keyView the type of keydel keyDelete the specified key data (delete directly)unlink keySelect non blocking deletion (asynchronous deletion) according to value. Only keys are deleted from the met ...

Added by dkruythoff on Sun, 16 Jan 2022 06:06:25 +0200

redis sentry deployment

Sentinel Sentry is a very important component in Redis cluster architecture. The emergence of sentry mainly solves the problem of human intervention in case of failure of master-slave replication. 1. Main functions of redis sentry (1) Cluster monitoring: responsible for monitoring whether Redis master and slave processes work normally (2) M ...

Added by jcm93 on Sun, 16 Jan 2022 02:14:57 +0200

[redis] secondary index

Simple numeric index Example: HMSET user:1 id 1 username antirez ctime 1444809424 age 38 HMSET user:2 id 2 username maria ctime 1444808132 age 42 HMSET user:3 id 3 username jballard ctime 1443246218 age 33 In the above example, it is very convenient to query each key in each user. However, what if we want to query users aged 33-38? Secondar ...

Added by slimjim on Sat, 15 Jan 2022 23:52:36 +0200

Practice of spring boot integrating Redis to realize publish and subscribe function

1, Project structure I'll use it first SpringBoot Initializer It is more convenient to create a simple Demo and then modify it on the Demo. The project structure is shown in the figure below: The project structure is also very simple PrintMessageListener is responsible for processing subscription messages. I just print the received Redis info ...

Added by DeadEvil on Sat, 15 Jan 2022 17:30:49 +0200

SpringBoot uses Arthas for performance analysis and hot update of production environment

thank First of all, we need to thank the colleagues who participated in the investigation together. Without them, we can't complete the analysis. Finally, the problem has not been solved. If it is solved, I hope the students of operation and maintenance can share it on the network to make up for the defects of this article. backgroun ...

Added by schlag on Sat, 15 Jan 2022 13:31:22 +0200

Redis (persistence principle, security policy, expiration deletion & memory obsolescence policy, performance pressure measurement, highly available Redis Cluster)

Redis (persistence principle, security policy, expiration deletion & memory obsolescence policy, performance pressure measurement, highly available Redis Cluster) 1. Persistence principle Persistence: Redis is an in memory database, and all data is stored in memory. In order to avoid permanent loss of data caused by process exit, it i ...

Added by SnakeFox on Fri, 14 Jan 2022 18:59:44 +0200

Pit of incr+expire of redis

background The user needs to perform ocr identification. In order to prevent the interface from being brushed, there is a limit (the number of calls per minute cannot exceed xxx). After investigation, we decided to use the incr and expire of redis to implement this function Note: the following code is implemented using golang First edi ...

Added by aris1234 on Fri, 14 Jan 2022 16:30:01 +0200

Major manufacturers are using EhCache. Where is it better than Redis?

Story background With the decline of hardware price, people rely more and more on hardware. I even heard that the code is not important. If not, add machines. For example, the use of cache is usually based on virtual machine memory, disk storage and Middleware (Redis memory). We all know that the most suitable is the best, but in practice, it ...

Added by damo87 on Fri, 14 Jan 2022 08:51:07 +0200

Redis - handling of expired keys during RDB, AOF and replication

When you execute the SAVE command or BGSAVE command to create a new RDB file, the program will check the keys in the database, and the expired keys will not be saved to the newly created RDB file. For example, if the database contains three keys k1, k2 and k3, and k2 has expired, when the SAVE command or BGSAVE command is executed, the program ...

Added by stylefrog on Wed, 12 Jan 2022 09:08:29 +0200

02 redis common data types

brief introduction summary As a key/value data storage system, Redis provides a variety of data types to facilitate data management. Then, the data generated in our project is stored based on the specified type, such as user login information, shopping cart information, commodity details, etc. Common data types The basic data structures in ...

Added by Koobi on Mon, 10 Jan 2022 15:15:55 +0200