当前位置:网站首页>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
边栏推荐
- TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
- 数字经济时代,如何保障安全?
- Typescript void base type
- 软件开发的一点随记
- 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
- JMeter performance test steps practical tutorial
- Simulation of holographic interferogram and phase reconstruction of Fourier transform based on MATLAB
- Ble of Jerry [chapter]
- Ble of Jerry [chapter]
猜你喜欢
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
Generator Foundation
Three no resumes in the software testing industry. What does the enterprise use to recruit you? Shichendahai's resume
解决方案:智慧工地智能巡檢方案視頻監控系統
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
jmeter性能测试步骤实战教程
[MySQL learning notes 30] lock (non tutorial)
TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
opencv学习笔记八--答题卡识别
随机推荐
Position() function in XPath uses
Scala language learning-08-abstract classes
合规、高效,加快药企数字化转型,全新打造药企文档资源中心
Simulation of holographic interferogram and phase reconstruction of Fourier transform based on MATLAB
【MySQL学习笔记32】mvcc
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
js对象获取属性的方法(.和[]方式)
Sharing of source code anti disclosure scheme under burning scenario
TS类型体操 之 字符串的妙用
Emo diary 1
Cf1036c class numbers solution
opencv学习笔记九--背景建模+光流估计
TypeScript 可索引类型
How can word delete English only and keep Chinese or delete Chinese and keep English
TypeScript 接口属性
Typescript interface properties
Jerry's ad series MIDI function description [chapter]
In the era of digital economy, how to ensure security?
2022年Instagram运营小技巧简单讲解
TypeScript 变量作用域