Redis data type (hash type)

hash type and operation ① Overview The hash type in Redis can be understood as a map container with String Key and String Value, so the hash type is suitable for storing value object information. Such as Username, Password or Age. Even if there are only a few fields in the hash, its data only takes up a small amount of disk space. Each ha ...

Posted by daniel_grant on Sat, 21 May 2022 04:01:06 +0300

Interviewer: talk about redis6 Three ways to build cluster in version 0

Friends interested in PHP back-end technology and PHP architecture technology, my official group Click here , study together and discuss with each other. There are already managers in the group to sort out the knowledge system (source code, learning videos and other materials). Welcome to add the group for free. 1, Single node instance The s ...

Posted by alex.hughson on Fri, 20 May 2022 17:24:46 +0300

Solutions for Redis common problems such as penetration, breakdown and avalanche

Cache penetration Problem description ​ There must be no cache and data that cannot be queried. Because the cache is written passively when it misses, and for the sake of fault tolerance, if the data cannot be found from the storage layer, it will not be written to the cache, which will cause the nonexistent data to be queried in the storage ...

Posted by scuzzo on Thu, 19 May 2022 21:57:24 +0300

Redis distributed lock - a full understanding of this article (Redission's perfect scheme for realizing distributed lock)

preface In some scenarios, multiple processes must monopolize and share resources in a mutually exclusive manner. At this time, distributed locking is the most direct and effective. With the rapid development of technology, the increase of data scale and the increasing popularity of distributed systems, an application is often deployed on mul ...

Posted by laide234 on Thu, 19 May 2022 05:32:16 +0300

reids 5.0.4 cluster mode deployment practice.

1, Preparatory work The redis compressed package of 5.0.4 can be downloaded from the official website. linux environment 2, Unzip and install 1. Create 6 new folders to install redis directory The directory path is / root/tools/7001 [root@my 7001]# pwd /root/tools/7001 [root@my 7001]# ls redis-5.0.4.tar.gz 2. Unzip and install redis ta ...

Posted by sarijit on Thu, 19 May 2022 00:34:17 +0300

spring cache - (CACHE penetration, cache breakdown, cache avalanche, hot data)

Note: This article is a little long, so I suggest you download the source code to learn. (please collect if necessary! Please state the source of reprint, thank you!) Code download: https://gitee.com/hong99/spring/issues/I1N1DF background Following the above< spring cache - distributed cache>; About jmeter configuration jmeter is an ...

Posted by jahwobbler on Wed, 18 May 2022 08:43:34 +0300

Redis does interface current limiting, which is an annotation!

In addition to caching, Redis can also do many things: distributed locking, flow limiting, idempotency of request processing interface... Too much, too much ~Today, I want to talk with my friends about how to use Redis to deal with interface current limitation. This is also the knowledge point involved in the recent TienChin project. I'll bring ...

Posted by harley1387 on Tue, 17 May 2022 16:48:56 +0300

redis - distributed lock

In java, we can lock with, lock with and unlock with. However, in the case of multiple processes or servers, this locking method can't work because it can't let other clients know whether they are locked or not. So we can use redis, zookeeper, etcd, etc. Redis also has an optimistic lock similar to lock redis - commodity trading The use of WATC ...

Posted by cac_azure03 on Mon, 16 May 2022 10:26:00 +0300

Redis's capacity expansion, expiration deletion, update strategy and elimination mechanism

How to expand the capacity of Redis persistent data and cache? If Redis is used as a cache, use consistent hash to achieve dynamic capacity expansion and reduction. If Redis is used as a persistent storage, a fixed key to nodes mapping relationship must be used. Once the number of nodes is determined, it cannot be changed. Otherwise (that is ...

Posted by Jaguar on Sun, 15 May 2022 21:29:43 +0300

Redis learning notes

Redis is a NoSQL Not Only SQL (key value) NoSQL Used to solve 3v+3 high Massive Volume, real-time Velocity, diversity High concurrency, high scalability and high performance Redis Download Windows Download the zip package and unzip it to the environment folder Linux I use the automatic installation of pagoda panel Directory for aut ...

Posted by ChrisBoden on Sun, 15 May 2022 10:01:55 +0300