A redis3 master-3-slave cluster built based on hash slots using docker containers

1. Construction background Cluster mode-docker version, hash slot partition for billion-level data storage 1. 100-200 million pieces of data need to be cached. How to design it? Answer: Using distributed storage, there are generally three solutions in the industry The first type: hash remainder partition (generally used by small factories) Disadvantages: The biggest disadvantage of […]

shell – regular expression, sed streaming editor

Regular Expressions Overview Overview Use a “string of symbols” to describe data with common attributes Basic regular list Extended regular list Prepare materials [root@localhost ~]# head -5 /etc/passwd > user [root@localhost ~]# cat user root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin Test ^ $ [root@localhost ~]# grep root user root:x:0:0:root:/root:/bin/bash [root@localhost ~]# grep ^root user root:x:0:0:root:/root:/bin/bash [root@localhost […]

An ADC sampling algorithm, median average filtering + recursive average filtering

Foreword In actual AD acquisition scenarios, there will be effects of periodic changes and occasional pulse fluctuation interference on AD acquisition. Here a combination of median average filtering + recursive average filtering is used Refer to the code framework written by predecessors, and also refer to the blog below by blogger GuYH_, and make slight […]

Collect the use of different rich text editors (vue3 version)

Article directory 1. ueditor (Baidu Rich Text Editor) Install Use and re-package components 2. KindEditor download file Create new components and use them 1. ueditor (Baidu Rich Text Editor) Reference ueditor and vue-ueditor-wrap The encapsulated vue component is used directly here vue-ueditor-wrap vue3 version Installation npm i [email protected] -S or yarn add [email protected] Use and […]

Solve the problem that the Onlyoffice file version changes and the problem that multiple people cannot edit collaboratively after using dynamic keys

1.Cause analysis Onlyoffice’s file saving mechanism relies on the callback interface to save files. Once the file is saved successfully. When the editor is opened again with the last key and the latest document URL address as parameters, the editor service goes to redis to find the cache based on the key and verifies whether […]

Design and implementation of medical reimbursement system based on SpringBoot

Table of Contents Preface 1. Technology stack 2. Introduction to system functions Implementation of administrator function module Reimbursement form list Announcement information management Announcement type management 3. Core code 1. Login module 2. File upload module 3. Code encapsulation 4. System testing software test test environment test case User login test Add announcement category test […]

Implementing distributed locks based on redis

Article directory Implementing distributed locks based on redis Basic implementation Anti-deadlock Prevent accidental deletion Atomicity cannot be guaranteed in high concurrency scenarios. Use Lua to ensure deletion atomicity Encapsulate the redis lock into a method Implementing distributed locks based on redis Basic implementation With the help of the command setnx(key, value) in redis, if the […]

Edible mushroom stick traceability system based on SSM

Get the source code at the end Development language: Java Java development tools: JDK1.8 Backend framework: SSM Frontend: Vue Database: MySQL5.7 combined with Navicat management tool Server: Tomcat8.5 Development software: IDEA/Eclipse Is it a Maven project: Yes Table of Contents 1. Project Introduction 2. System functions 3. System project screenshots Ordinary user management Ordinary administrator […]