当前位置:网站首页>Redis (I) -- getting started with redis (2) -- redis data type
Redis (I) -- getting started with redis (2) -- redis data type
2022-06-29 18:46:00 【The pleasure is boundless】
Redis data type
String - String type
Hash - Hash type
List - List the type
Set - Collection types
Zset - Ordered set type
String String type

String command 

Hash Key type
Hash Type is used to store structured data 
Hash command 

List List the type
List A list is a list of strings “ Array ”, Sort by insertion order .
List The maximum length of the list is 2 Of 32 Power -1, Can contain 40 100 million elements .
List command
rpush listkey c b a - Insert... On the right
lpush listkey f e d - Insert... On the left 
rpop listkey - Right pop up 
lpop listkey - Pop up on the left 
lrange listkey 0 -1 - List listkey All elements from start to end in 
Set And Zset Collection types
Set A collection is an unordered collection of strings , Collection members are unique .
Zset A collection is an ordered collection of strings , Collection members are unique .
sinter set1 set2 - intersection
sunion set1 set2 - Combine
sdiff set1 set2 - Difference set 



边栏推荐
- Us judge ruled that the former security director of Uber accused of covering up hacking must face fraud charges
- Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
- 2. 在STM32CubeMX建立的Keil5工程中添加自定义的相关文件
- SD6.23集训总结
- jdbc_ Related codes
- JS text particle dynamic background
- 数据仓库模型分层ODS、DWD、DWM实战
- How to use idea?
- 美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控
- Adobe Premiere基礎-聲音調整(音量矯正,降噪,電話音,音高換擋器,參數均衡器)(十八)
猜你喜欢

Markdown knowledge comes gently

RocketMQ的tag过滤和sql过滤

Source code installation mavros

jdbc_相关代码

Adobe Premiere Foundation - réglage du son (correction du volume, réduction du bruit, tonalité téléphonique, changement de hauteur, égaliseur de paramètres) (XVIII)

About microservices

Leetcode 984. String without AAA or BBB (thought of netizens)

Chapter 02_ MySQL data directory

How to use the oak camera on raspberry pie?

Apache inlong million billion level data stream processing
随机推荐
数据分析--时间序列预测
剑指 Offer 34. 二叉树中和为某一值的路径-dfs法
Data warehouse model layered ODS, DWD, DWM practice
Adobe Premiere foundation - material nesting (animation of Tiktok ending avatar) (IX)
优雅书写Controller(参数验证+统一异常处理)
MySQL 企業級開發規範
第八届“互联网+”大赛 | 云原生赛道邀你来挑战
RocketMQ的tag过滤和sql过滤
CentOS 7.5 install MySQL 8.0.27---yum
Data-* attribute usage
How do I add SmartArt to slides in PowerPoint?
程序员资源推荐指南
Detailed analysis on the use of MySQL stored procedure loop
Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
Adobe Premiere基础-时间重映射(十)
SD6.24集训总结
Application and practice of DDD in domestic hotel transaction -- Theory
Apache InLong百万亿级数据流处理
[daily training] 535 Encryption and decryption of tinyurl
C Primer Plus 第12章_存储类别、链接和内存管理_代码和练习题