当前位置:网站首页>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 



边栏推荐
- Shandong University project training (VIII) design rotation map entry page
- How to use the oak camera on raspberry pie?
- Hello, do you have any official website samples for MySQL CDC, PostgreSQL CDC? Give me a link to learn
- Jar package background startup and log output
- Chapter 02_ MySQL data directory
- 山东大学项目实训(七)添加导航栏选择城市
- markdown常用字体
- Apache inlong million billion level data stream processing
- When easycvr deploys a server cluster, what is the reason why one is online and the other is offline?
- Apache Doris 基本使用总结
猜你喜欢

第02章_MySQL的数据目录

Error building SqlSession问题

面霸篇:MySQL六十六问,两万字+五十图详解!

Apache Doris 基本使用总结

Us judge ruled that the former security director of Uber accused of covering up hacking must face fraud charges

美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控

C Primer Plus Chapter 12_ Storage categories, links, and memory management_ Codes and exercises

Sword finger offer 34 Path DFS method for binary tree neutralization

2. 在STM32CubeMX建立的Keil5工程中添加自定义的相关文件

How to use the oak camera on raspberry pie?
随机推荐
[daily training] 535 Encryption and decryption of tinyurl
jdbc_相关代码
Cannot retrieve repository metadata processing records
Tag filtering and SQL filtering of rocketmq
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)
Error [warning] neural network information was performed on socket 'RGB', depth frame is aligned to socket
剑指 Offer 34. 二叉树中和为某一值的路径-dfs法
postgis 生成 图形切割
数据仓库模型分层ODS、DWD、DWM实战
Shell basic syntax -- process control
data-*属性用法
Cannot retrieve repository metadata 处理记录
Adobe Premiere基础-炫酷文字快闪(十四)
Servlet student management system (Mengxin hands-on version)
Sd6.25 summary of intensive training
Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)
MySQL -connector/j driver download
Data warehouse model layered ODS, DWD, DWM practice
Hello, do you have any official website samples for MySQL CDC, PostgreSQL CDC? Give me a link to learn
Leetcode 984. String without AAA or BBB (thought of netizens)