current location:Home > Technical Articles > Database > Redis
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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
- 使用依赖配置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?
- 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
- 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
- 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?
- //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
- 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
- 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 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
- 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
- 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
- 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
- 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?
- 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?
- 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