当前位置:网站首页>Redis list detailed explanation of character types yyds dry goods inventory
Redis list detailed explanation of character types yyds dry goods inventory
2022-07-06 07:39:00 【Jiangxiaolong's technology blog】
Redis list list Detailed explanation of character types
1. List type common instructions
| command | meaning | usage |
|---|---|---|
| LPUSH | Insert data at the beginning | lpush key value |
| RPUSH | Insert data at the end | rpush key value |
| LPOP | Delete starting data | lpop key |
| RPOP | Delete end data | rpop key |
| LRANGE | see key data | lrange key 0 -1 |
2. In the list key Middle write data
A list of key It can contain multiple pieces of data , list key It is similar to a database table , There are multiple pieces of data in it
In the list key There are two commands for writing data in ,RPUSH and LPUSH
rpush Means to write from the right , It can be understood as writing data from the end to the inside
lpush Means to write from the left , It can be understood as writing data from the beginning to the inside
Grammar format :LPUSH key value
RPUSH key value
3. Delete list key One of the data in
Delete key Data from LPOP and RPOP name
LPOP The command starts at the beginning and deletes , Grammar format :LPOP key
RPOP The command starts at the end and deletes , Grammar format :RPOP key
4. view list key The data of
redis list key The first one is 0, The second is 1
Grammar format :lrange key From the first few lines To which line
边栏推荐
- 861. Score after flipping the matrix
- In the era of digital economy, how to ensure security?
- The way to learn go (II) basic types, variables and constants
- Openjudge noi 2.1 1749: Digital Square
- Get the path of edge browser
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- 软件开发的一点随记
- NiO programming introduction
- TypeScript void 基础类型
- 软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历
猜你喜欢

Force buckle day31
![Ble of Jerry [chapter]](/img/00/27486ad68bf491997d10e387c32dd4.png)
Ble of Jerry [chapter]

Simulation of Michelson interferometer based on MATLAB

Inspiration from the recruitment of bioinformatics analysts in the Department of laboratory medicine, Zhujiang Hospital, Southern Medical University
![If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]](/img/d6/92ad1c6f84415de6ab0dfd16cd6073.png)
If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]

烧录场景下的源代码防泄密方案分享

Oracle column to row -- a field is converted to multiple rows according to the specified separator

Games101 Lesson 7 shading 1 Notes

Solution: intelligent site intelligent inspection scheme video monitoring system

Mise en œuvre du langage leecode - C - 15. Somme des trois chiffres - - - - - idées à améliorer
随机推荐
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
【mysql学习笔记30】锁(非教程)
TypeScript 接口属性
解决方案:智慧工地智能巡檢方案視頻監控系統
数字IC设计笔试题汇总(一)
[MySQL learning notes 32] mvcc
【MySQL学习笔记32】mvcc
TS 体操 &(交叉运算) 和 接口的继承的区别
Force buckle day31
Methods for JS object to obtain attributes (. And [] methods)
剪映的相关介绍
软件开发的一点随记
Jerry's ad series MIDI function description [chapter]
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Select all the lines with a symbol in word and change them to titles
Word setting directory
Launch APS system to break the problem of decoupling material procurement plan from production practice
http缓存,强制缓存,协商缓存
Simulation of Michelson interferometer based on MATLAB
C # create database connection object SQLite database