当前位置:网站首页>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
边栏推荐
- Summary of Digital IC design written examination questions (I)
- Jerry needs to modify the profile definition of GATT [chapter]
- If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]
- Position() function in XPath uses
- Iterator Foundation
- edge浏览器 路径获得
- Brief explanation of instagram operation tips in 2022
- DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
- Sélectionnez toutes les lignes avec un symbole dans Word et changez - les en titre
- Games101 Lesson 7 shading 1 Notes
猜你喜欢
解决方案:智慧工地智能巡檢方案視頻監控系統
Ble of Jerry [chapter]
Do you really think binary search is easy
Opencv learning notes 8 -- answer sheet recognition
leecode-C語言實現-15. 三數之和------思路待改進版
烧录场景下的源代码防泄密方案分享
杰理之BLE【篇】
Basics of reptile - Scratch reptile
Summary of Digital IC design written examination questions (I)
opencv学习笔记八--答题卡识别
随机推荐
jmeter性能测试步骤实战教程
GET/POST/PUT/PATCH/DELETE含义
[MySQL learning notes 30] lock (non tutorial)
Solution: intelligent site intelligent inspection scheme video monitoring system
Is the super browser a fingerprint browser? How to choose a good super browser?
Openjudge noi 2.1 1749: Digital Square
Simple and understandable high-precision addition in C language
学go之路(一)go的基本介绍到第一个helloworld
Comparison of usage scenarios and implementations of extensions, equal, and like in TS type Gymnastics
Simulation of holographic interferogram and phase reconstruction of Fourier transform based on MATLAB
Do you really think binary search is easy
Emo diary 1
861. Score after flipping the matrix
Ble of Jerry [chapter]
[window] when the Microsoft Store is deleted locally, how to reinstall it in three steps
Oracle column to row -- a field is converted to multiple rows according to the specified separator
链表面试题(图文详解)
Cf1036c class numbers solution
Typescript interface and the use of generics
上线APS系统,破除物料采购计划与生产实际脱钩的难题