Use Shell script to monitor ports and set Redis to turn off automatic startup

Click Redis installation Make the file have miscellaneous attributes chmod a+x /etc/init.d/redis Crond service related commands( reference resources) crond service To install crontab: yum install crontabs Service operation instructions: /sbin/service crond start //Start service /sbin/service crond stop //Shut down service /sbin/se ...

Posted by jnewing on Mon, 24 Jan 2022 08:32:02 +0100

Spring boot integrates Redis to implement caching

Spring boot integrates Redis to implement caching Redis redis is simply a memory based non relational database that stores data in the form of key value pairs. The advantage is obvious. Because it is stored in memory, it reads very fast. This speed is completely unmatched by mysql and other databases, so we often use redis as cache to reduce ...

Posted by menwn on Sun, 23 Jan 2022 21:06:27 +0100

Source code analysis and simple encapsulation of hiredis

hiredis Hiredis is an open source C library function that provides basic redis operation functions, such as database connection, sending commands, releasing resources, etc 1,hiredis net hiredis itself is a cross platform code. It is built in c language and can be executed on a variety of platforms. Let's see what his net block has done #in ...

Posted by Griven on Sun, 23 Jan 2022 04:38:29 +0100

[redis series] redis learning IV, set set, hash, zset ordered set preliminary cognition

Set setThe data in the set cannot be re readSADD key member [member ...]Adds an element to the set collectionSMEMBERS keyView all elements in the collectionSISMEMBER key memberCheck whether a data is in the collectionSCARD keyView the number of set data, that is, the length of the setSREM key member [member ...]Removes the specified element fro ...

Posted by MuseiKaze on Sat, 22 Jan 2022 15:05:10 +0100

Download and install Redis tutorial for CentOS 7

From the official English website https://redis.io/download Or Chinese official website http://redis.cn/ Download Redis installation packageAfter downloading, double-click to open VMware Workstation Pro, select the virtual machine CentOS 7 to use, click "open this virtual machine", and enter the root user and the corresponding passwor ...

Posted by jwilh on Sat, 22 Jan 2022 14:02:59 +0100

Redis basic transaction operations

Most of the notes are taken when station B meets Redis said by crazy God. By the way, the pictures and texts are combined and recorded for easy review and only for learning! Video address: https://www.bilibili.com/video/BV1S54y1R7SB?t=250 The author is really very good. I remember Sanlian If there is infringement, please contact to delete! 1 ...

Posted by Kodak07 on Sat, 22 Jan 2022 08:03:23 +0100

Redis learning notes

Redis detailed notes Notes: the Redis course of crazy talking about Java in station B: https://www.bilibili.com/video/BV1S54y1R7SB 1, NoSQL overview 1. Why use NoSQL Now is the era of big data (data that cannot be solved by ordinary databases: big data (mass storage and parallel computing)) SQL => NoSQL 1. Bottleneck in sta ...

Posted by vijdev on Sat, 22 Jan 2022 04:37:34 +0100

Deep understanding of redis -- Introduction and application of five classic data types

1.String type and its application2.hash type and its application3.list type and its application4.set type and its application5.Zset type and its application6. Summary 1.String type and its applicationString type is our most commonly used type, and some people even use only this type.//The most commonly used api //Single value operation set key ...

Posted by MattSharp on Sat, 22 Jan 2022 02:48:43 +0100

Redis cache design and performance optimization

1, Multilevel cache architecture 2, Cache design 1. Cache penetration Cache penetration refers to querying a data that does not exist at all, and neither the cache layer nor the storage layer will hit. Generally, for the sake of fault tolerance, if the data cannot be found from the storage layer, it will not be written to the cache layer. ...

Posted by loureiro on Fri, 21 Jan 2022 14:22:26 +0100

Redis from installation to (master-slave, sentinel, cluster) deployment to integration project and some common functions

catalogue I Installing and configuring redis II Five data types III Spring boot integrates Redis IV Using fastjason to realize the mutual conversion of String and List (Redis stores Java objects) V Publish and sub scribe Vi Persistence VII Master slave copy (read / write separation) Master: Slave VIII Cache ex ...

Posted by nsr500rossi on Fri, 21 Jan 2022 06:31:06 +0100