current location:Home > Technical Articles > Database > Redis

  • How to install redis server under debian
    How to install redis server under debian
    To install Redis on Ubuntu system, use the source to install Redis. Use the following command: apt-getupdateapt-getinstallredis-server to start Redis. Redis-server checks whether redis starts redis-cli. The above command will open the following terminal: redis127.0.0.1:6379>127.0.0.1 is the current terminal. Machine IP, 6379 is the redis service port. Now we enter the PING command. redis127.0.0.1:6379>pingPONG The above shows that we have successfully installed redis.
    Redis 1398 2023-05-26 20:42:00
  • How Redis implements delay queue
    How Redis implements delay queue
    使用依赖配置4.0.0org.springframework.bootspring-boot-starter-parent2.3.12.RELEASEcom.homeeyredis-delay-queue0.0.1-SNAPSHOTredis-delay-queueredis-delay-queue1.8org.springframework.bootspring-boot-starter-data-redisorg.springframework.bootspring-boot-starter
    Redis 1548 2023-05-26 20:39:28
  • What is the method for docker to install mysql and redis images?
    What is the method for docker to install mysql and redis images?
    docker install mysql, redis image docker image store: official image store redis installation download download image: you can directly download the latest image by default, or you can specify the version to download [Note, software with a small version difference can directly download the latest version, if the difference is large, For example, java, mysql, etc., it is best to specify a familiar version for download] dockerpullredis startup image: dockerrun --name=redis-d--restart=always-p6379:6379redis--name: alias-d: running in the background, the image will not Close as window closes --restart=always
    Redis 1821 2023-05-26 20:16:13
  • How Springboot integrates Redis to achieve overselling problem
    How Springboot integrates Redis to achieve overselling problem
    Oversold Simple Code Write a simple and normal oversold logic code. Multiple users can operate the same piece of data at the same time to explore the problems that arise. Store a piece of data information in Redis, request the corresponding interface, and obtain product quantity information; if the product quantity information is greater than 0, deduct 1 and re-store it in Redis; run the code to test the problem. /***Redis database operation, oversold problem simulation*@author**/@RestControllerpublicclassRedisController{//Introducing String type redis operation template @AutowiredprivateStringRedisTemplatestringRe
    Redis 1430 2023-05-26 19:52:39
  • How to implement the internal implementation of ordered collections in Redis
    How to implement the internal implementation of ordered collections in Redis
    There are two internal implementations of ordered sets: ziplist and skiplist. Next, we will learn more about each in detail. Use compressed list as internal implementation when the number of elements in the ordered set is less than zset-max-ziplist-entries (default is 128), and the length of each element member is less than zset-max-ziplist-value (default is 64 bytes) ), a compressed list is used as the internal implementation of the ordered set. Each set element consists of two compressed list nodes close together, where the first node stores the members of the element and the second node stores the branches of the element. Compressed column
    Redis 1004 2023-05-26 19:25:39
  • What are the common API operations of redis?
    What are the common API operations of redis?
    //Set key-value pair//setkeyvalue[EXseconds][PXmilliseconds][NX|XX]//Get value//getkey//Delete key//delkey//Clear database//flushdb//Get list value//lrangekeystartstop/ /map type//hgetkeyfield//hgetallkey//sortedset type packagehgs.redislearn;importjava.io.IOException;importjava.util.HashMap;importj
    Redis 1624 2023-05-26 19:07:22
  • How to configure redis installation and master-slave replication in CentoS environment
    How to configure redis installation and master-slave replication in CentoS environment
    Dependent environment centos6.5gcc-4.4.7: Compile redis original file tcl-8.5.7: Run compilation detection 1. Compile redis#cd/usr/local#tar-zxvfredis-4.0.1.tar.gz#mvredis-4.0. 1redis#cdredis#make runs compilation test maketest requires tcl-8.5 and above #yuminstall-ytcl#maketest2. Start redis#cdsrc#./redis-server3. Visit redis#cd./redis-cli. It is recommended to install the latest version on linux.
    Redis 1134 2023-05-26 19:07:16
  • How to implement Redis subscription and publishing using the sub-pub mechanism in python
    How to implement Redis subscription and publishing using the sub-pub mechanism in python
    Let’s first introduce the pub/sub function of redis: Pub/Sub function (meansPublish,Subscribe) is the publish and subscribe function. In event-based systems, Pub/Sub is currently a widely used communication model. It uses events as the basic communication mechanism to provide a loosely coupled interaction model required by large-scale systems: subscribers (such as clients) subscribe to events. The method expresses an event or a type of event that it is interested in receiving; the publisher (such as the server) can notify relevant subscribers at any time of events that the subscriber is interested in. In layman's terms, it means that my sub-side (subscriber) is always listening. Once the pub-side (publisher) publishes a message, then I will receive it. For example,
    Redis 927 2023-05-26 18:55:28
  • How to install redis extension in liunx php
    How to install redis extension in liunx php
    How to install the redis extension in liunxphp: 1. Check the redis version; 2. Download the installation package through the wget command and decompress the installation package through "tarzxf"; 3. Execute "cdredis-4.0.8/srcmake" to install redis. Installing redis on linux It is very simple to install redis on linux. It is introduced on the official website. Install redis: 1. Check the redis version first 2. Install redis#2.1 Download the installation package wgethttp://download.redis.io/releases/redis-4.0.8.tar.gz#2.2 Unzip tarzxfredis
    Redis 2058 2023-05-26 18:52:06
  • How to install Redis extension using YII2 framework
    How to install Redis extension using YII2 framework
    1. You need to download the windows version of the master branch of yii2-redis with composer 2. Unzip and copy it to vendor/yiisoft 3. Add 'yiisoft/yii2-redis'=>array('name'=>'yiisoft to extensions.php under yiisoft /yii2-redis','version'=>'2.0.
    Redis 1315 2023-05-26 18:41:41
  • How to implement Redis cluster installation and configuration under Docker
    How to implement Redis cluster installation and configuration under Docker
    1. All machines pull the image dockerpullredis 2. Master-slave cluster construction 2.1, redis.cong file 2.1.1, master node: bind0.0.0.0protected-modeno//redis configuration access password requirepass123456//master node password in sentinel mode The password masterauth1234562.1.2 is required to restore a node from downtime to a slave node. Slave node: bind0.0.0.0protected-modenorequirepass123456//master node access password masterauth123456//master node information sl
    Redis 1625 2023-05-26 18:36:25
  • How to install redis in Linux centos7
    How to install redis in Linux centos7
    1. Because redis is developed in C language and is based on C language, we have to first check whether we have installed the gcc environment. If it is not installed, install it online to see if gcc is installed. If gcc is installed, gcc-v will display the version. If it is not installed, install yum-yinstallgcc online. -c++2, decompress the redis compressed package and compile and decompress [root@localhostsoft]#tar-zxvfredis-3.0.0After decompression, you can see our redis folder and enter our redis directory to compile makecdredis-3.0.0make3 , create folder installation and create folder mkdir/usr/local/re
    Redis 1041 2023-05-26 18:28:06
  • What are the features of Redis5.0
    What are the features of Redis5.0
    New Streamdatatype (Streamdatatype) New Redis module API: Timers, Cluster and Dictionary APIs (Timers, Cluster and Dictionary APIs) RDB can now store LFU and LRU information Cluster manager in redis-cli from Ruby (redis-trib.rb ) was ported to C language code. Execute `redis-cli–clusterhelp` command to learn more New sortedset command: ZPOPMIN/MAX and blocking variants (blockingvariants) Upgrading Activedefragment
    Redis 1498 2023-05-26 18:16:36
  • What are the situations of Redis blocking?
    What are the situations of Redis blocking?
    Command blocking uses inappropriate commands to cause client blocking: keys*: obtains all key operations; Hgetall: returns the sum of all fields in the hash table; smembers: returns all members in the set; the time complexity of these commands is O(n ), and sometimes a full table scan is performed. As n increases, the time consumption increases and the client is blocked. SAVE blocking Everyone knows that when Redis takes an RDB snapshot, it will call the system function fork() to create a sub-thread to complete the writing of temporary files, and the triggering condition is the save configuration in the configuration file. When our configuration is reached, the bgsave command will be triggered to create a snapshot. This method will not block the main thread and is executed manually.
    Redis 1534 2023-05-26 18:16:23
  • What is the command to shut down redis in Linux system?
    What is the command to shut down redis in Linux system?
    How to shut down redis correctly in Linux system? If redis is forcibly closed or the shutdown method is improper, may it cause some unexpected things? servicenetworkrestar#Restart network ipaddr#Find ip[root@localhost~]#cd/usr/local/redis[root@localhostredis]#./bin/redis-server./redis.conf[root@localhostredis]#./bin/ redis-cli127.0.0.1:6379>exit[root@localhost
    Redis 3146 2023-05-26 17:58:06

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28