当前位置:网站首页>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
边栏推荐
- opencv学习笔记九--背景建模+光流估计
- Simulation of holographic interferogram and phase reconstruction of Fourier transform based on MATLAB
- 杰理之BLE【篇】
- Luogu p1836 number page solution
- [online problem processing] how to kill the corresponding process when the MySQL table deadlock is caused by the code
- Related operations of Excel
- How MySQL merges data
- TypeScript 变量作用域
- Summary of Digital IC design written examination questions (I)
- Basics of reptile - Scratch reptile
猜你喜欢
![Ble of Jerry [chapter]](/img/ce/127b597cdd238bb0c37326f5cf8265.png)
Ble of Jerry [chapter]

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

Risk planning and identification of Oracle project management system

word中如何删除某符号前面或后面所有的文字

Key value judgment in the cycle of TS type gymnastics, as keyword use

Simulation of Michelson interferometer based on MATLAB

Sharing of source code anti disclosure scheme under burning scenario
![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]
![DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist](/img/17/415e66d67afb055e94a966de25c2bc.png)
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
Comparison of usage scenarios and implementations of extensions, equal, and like in TS type Gymnastics
随机推荐
Ali's redis interview question is too difficult, isn't it? I was pressed on the ground and rubbed
Relevant introduction of clip image
Key value judgment in the cycle of TS type gymnastics, as keyword use
TypeScript 变量作用域
Sélectionnez toutes les lignes avec un symbole dans Word et changez - les en titre
位运算异或
Opencv learning notes 8 -- answer sheet recognition
Three treasures of leeks and Chinese men's football team
链表面试题(图文详解)
edge瀏覽器 路徑獲得
软件开发的一点随记
Methods for JS object to obtain attributes (. And [] methods)
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
[dictionary tree] [trie] p3879 [tjoi2010] reading comprehension
How to estimate the number of threads
C # connect to SQLite database to read content
qt颜色与字符串、uint相互转换
[computer skills]
Simulation of holographic interferogram and phase reconstruction of Fourier transform based on MATLAB
Get/post/put/patch/delete meaning