当前位置:网站首页>Redis(一)--Redis入门(2)--Redis数据类型
Redis(一)--Redis入门(2)--Redis数据类型
2022-06-29 18:15:00 【其乐无涯】
Redis数据类型
String - 字符串类型
Hash - Hash类型
List - 列表类型
Set - 集合类型
Zset - 有序集合类型
String 字符串类型

字符串命令

Hash键值类型
Hash类型用于存储结构化数据
Hash命令

List列表类型
List列表就是一系列字符串的“数组”,按插入顺序排序。
List列表最大长度为2的32次方-1,可以包含40亿个元素。
List命令
rpush listkey c b a - 右侧插入
lpush listkey f e d - 左侧插入
rpop listkey - 右侧弹出
lpop listkey - 左侧弹出
lrange listkey 0 -1 - 列出listkey中从开始到末尾所有元素
Set与Zset集合类型
Set集合是字符串的无序集合,集合成员是唯一的。
Zset集合是字符串的有序集合,集合成员是唯一的。
sinter set1 set2 - 交集
sunion set1 set2 - 并集
sdiff set1 set2 - 差集



边栏推荐
- Adobe Premiere foundation - opacity (mixed mode) (XII)
- CentOS 7.5 install MySQL 8.0.27---yum
- WBF: new method of NMS post filter frame for detection task?
- 程序员资源推荐指南
- JDBC Codes connexes
- Sd6.22 summary of intensive training
- 6.29 simulation summary
- Interview question 10.10 Rank of digital stream
- If the evaluation conclusion of waiting insurance is poor, does it mean that waiting insurance has been done in vain?
- mysql -connector/j驱动下载
猜你喜欢

Understanding of strong caching and negotiation caching

Apache InLong百万亿级数据流处理

Anfulai embedded weekly report no. 271: June 20, 2022 to June 26, 2022

How to use idea?

Tag filtering and SQL filtering of rocketmq

Shandong University project training (VI) Click event display line chart

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

Source code installation mavros

Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)

My first experience of remote office | community essay solicitation
随机推荐
Request header field XXXX is not allowed by access control allow headers in preflight response
Adobe Premiere foundation - opacity (matte) (11)
[how the network is connected] Chapter 3 explores hubs, switches and routers
[daily training] 535 Encryption and decryption of tinyurl
What is a multi paradigm programming language and what does "multi paradigm" mean?
数据仓库模型分层ODS、DWD、DWM实战
Travel card "star picking" hot search first! Stimulate the search volume of tourism products to rise
美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控
My first experience of remote office | community essay solicitation
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
Sd6.24 summary of intensive training
jdbc认识上手
[tcapulusdb knowledge base] tcapulusdb doc acceptance - table creation approval introduction
熊猫跑酷js小游戏代码
Us judge ruled that the former security director of Uber accused of covering up hacking must face fraud charges
/usr/bin/ld: warning: **libmysqlclient. so. 20**, needed by //usr/
踩坑记:JSON.parse和JSON.stringify
程序员资源推荐指南
【网络是怎么连接的】第三章 探索集线器,交换机和路由器
Anaconda installs and configures jupyter notebook remote