Redis database - introduction, deployment and common commands of redis

1, Overview of relational database and non relational database 1. Relational database Relational database is a structured database, which is created on the basis of relational model (two-dimensional table model) and is generally record oriented. SQL statement (standard data query language) is a language based on relational database, whic ...

Posted by McMaster on Fri, 18 Feb 2022 20:13:39 +0100

Redis learning notes - installation configuration, 5 basic data types, Jedis, mobile verification code, seckill

1 installation Download the compressed package on the official website of Redis: Use Xftp to put the Redis compressed package in the / opt directory and use the command: tar -zxvf Redis-6.2.2 tar. GZ decompression. Because Redis is implemented based on C + +, it needs to rely on two additional packages: GCC and gcc-c + +. Use the commands ...

Posted by rodolp13 on Fri, 18 Feb 2022 19:54:12 +0100

Introduction and comparison of commonly used redis clients

Introduction and comparison of a common redis client Jedis api online web address: http://tool.oschina.net/uploads/apidocs/redis/clients/jedis/Jedis.html Redisson website address: https://redisson.org/ redisson git project address: https://github.com/redisson/redisson Letuce website address: https://lettuce.io/ Letuce git project ad ...

Posted by pdaoust on Fri, 18 Feb 2022 19:48:47 +0100

Simple second kill system - optimization I (detailed notes)

Introduction and optimization process of simple second kill system windows native hardware configuration: 8-core 32G linux server hardware configuration: 2-core 4G Foreword, the optimized simple second kill system does not involve distribution, so naturally there are no technical points such as master-slave replication. Here, we should a ...

Posted by 22Pixels on Fri, 18 Feb 2022 17:03:17 +0100

Cache optimization and practice of ten million shopping cart system

1, Analysis of shopping cart data model in E-commerce Functions realized in shopping cart: add shopping cart, view shopping cart, edit shopping cart sku, edit commodity data, select multiple commodities in shopping cart to settle, view the total number of commodities in shopping cart, delete shopping cart, share shopping cart, etc Current sho ...

Posted by mitwess on Fri, 18 Feb 2022 10:21:21 +0100

Redis installation, configuration and related optimization

1, Relational database and non relational database 1 relational database Relational database is a structured database, which is created on the basis of relational model (two-dimensional table model) and is generally oriented to records. SQL statement (standard data query language) is a language based on relational database, which is used ...

Posted by HostingTrade on Fri, 18 Feb 2022 00:33:27 +0100

RedisAPI learning diary

1, General characteristics of redis The subscript of redis supports both positive and negative numbers+ 1 represents the first element- 1 indicates the last to last element. So you can make good use of this feature to traverse. For example, list, lrange list 1 -1 can traverse the list.Redis's scope is a closed interval. Unlike java's, the scop ...

Posted by jalperin on Thu, 17 Feb 2022 23:08:24 +0100

redis distributed lock combat from simple to deep to solve the problem of concurrent oversold

What is the purpose of redis distributed lock to solve? In order to solve the problem that synchronized can not achieve synchronization in distributed situations, because synchronized synchronization is the method of one jvm, which can not be done by multiple JVMs. 1. Implement the inventory reduction scenario of redis basic business Integer ...

Posted by ryan-uk on Thu, 17 Feb 2022 22:49:29 +0100

Establishment of redis master-slave mode and sentinel mode

Install redis https://redis.io/download cd /opt wget http://download.redis.io/releases/redis-6.2.3.tar.gz yum install gcc-c++ tar xzf redis-6.2.3.tar.gz mv /opt/redis-6.2.3 /usr/local/redis cd /usr/local/redis make make PREFIX=/usr/local/redis install Setup of master-slave redis mode cd /opt mkdir redis-sentinel cd redis-sentinel m ...

Posted by plutarck on Thu, 17 Feb 2022 09:36:49 +0100

Installation, use and optimization of Redis (including python operation zset)

1, Redis installation download Redis 1. Decompress, compile and install # Decompress, compile and install (odc) [mca@clu01 software]$ tar -xvf redis-6.2.6.tar.gz (odc) [mca@clu01 software]$ cd redis-6.2.6/ (odc) [mca@clu01 redis-6.2.6]$ make (odc) [mca@clu01 redis-6.2.6]$ cd src (odc) [mca@clu01 src]$ sudo make install 2. Director ...

Posted by agga.gaag on Tue, 15 Feb 2022 15:42:26 +0100