Redis persistence - AOF

catalogue 1 what is AOP 2 appendonly.aof file 3 Rewrite 3.1 what is rewrite  3.2 rewriting principle 3.3 trigger mechanism 4 advantages and disadvantages of AOF 5 Summary 5.1 comparison between RDB and aof 5.2 enable two persistence methods at the same time 1 what is AOP Record every write operation in the form of log, and rec ...

Posted by badassrocker on Thu, 03 Feb 2022 20:42:18 +0100

Redis Notes - Transactions and Integration springboot

affair Redis's single command guarantees atomicity, but the redis transaction does not guarantee atomicity Redis Transaction nature: A collection of commands. ----------------- queue set set set implement ------------------- Each command in a transaction is serialized and executed sequentially. No interference from other commands is allowe ...

Posted by jej1216 on Thu, 03 Feb 2022 20:14:07 +0100

redis implements the function of like and cancel like

1.2 integration of redis and SpringBoot projects In POM Introducing dependencies into XML <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> Add comment @ EnableCaching on startup class @SpringBootApplication @EnableDisco ...

Posted by gabo on Thu, 03 Feb 2022 12:54:13 +0100

Redis distributed lock, redis read / write lock, red lock, redis cache design, cache and database synchronization

Redis distributed lock Redis is a single process and single thread mode. The queue mode is adopted to change concurrent access into serial access, and there is no competition between multiple clients for redis connection. In redis, SETNX command can be used to realize distributed locking. If and only if the key does not exist, set the val ...

Posted by starsol on Thu, 03 Feb 2022 03:03:55 +0100

redis inquiry 2 - learning and Research on distributed deployment, io communication model, distributed lock, etc

preface I have written articles about redis related data structures before. This paper follows the above content to study some other features of redis, so as to have a more comprehensive grasp and understanding of the use of redis. This article will summarize and discuss the io communication model of redis, the persistence of redis, and some p ...

Posted by mr_armageddon on Thu, 03 Feb 2022 02:21:11 +0100

An ordered set of redis. Do you know how the bottom layer is implemented? After reading this article, you'll see through

self-introduction xdm well, I'm a jump table, an ordered data structure. There is an array in each of my nodes. I maintain multiple pointers that can point to other nodes, so I can quickly access these nodes. That's why I'm a jump table. My average time complexity is O(logN). At worst, it is O(N). In most cases, I can compare with the efficie ...

Posted by kb0000 on Wed, 02 Feb 2022 18:52:10 +0100

Redis6.0 learning notes

1, Introduction to Redis overview 1. NoSQL overview NoSQL refers to not only Sql, which is a non relational database. NoSQL has four categories KV key valueDocument database (bson, MongoDB)Column storage database (HBase, distributed file system)Figure relational database (storing relationships, such as Neo4j) 2. Redis introduction R ...

Posted by neoform on Tue, 01 Feb 2022 23:35:50 +0100

Redis uses lua script

1. redis uses lua script syntax Redis Eval command - execute Lua script redis 127.0.0.1:6379> eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second 1) "key1" 2) "key2" 3) "first" 4) "second" among Script: the parameter is a Lua 5.1 script program. A script need not (and should not) be defined as a Lua function. numkeys ...

Posted by jiayanhuang on Tue, 01 Feb 2022 15:16:48 +0100

20 minutes to familiarize you with Redisson distributed lock design scheme

preface    if you find it useful, remember to give the blogger a praise, comment and collection. It's not easy to write with one button.    and it's said that people who praise won't have too bad luck every day. If it's really white whoring, you're welcome to come often!!! 20 minutes to familiarize you with Redisson ...

Posted by lunac on Tue, 01 Feb 2022 03:50:25 +0100

Crazy God said Redis notes

1, Nosql overview Why use Nosql 1. Stand alone Mysql Era In the 1990s, the number of visits to a website was generally not too large, and a single database was enough. With the increase of users, the website has the following problems When the amount of data increases to a certain extent, the stand-alone database cannot be put downTh ...

Posted by ciber on Tue, 01 Feb 2022 02:41:24 +0100