当前位置:网站首页>Redis key基本命令
Redis key基本命令
2022-08-05 03:26:00 【郝开】
Redis key基本命令
Redis key基本命令(最常用的:String type为例)
命令不需要专门记,tab键会提示命令格式,不是你想要的命令就继续按。
- set mykey myvalue(增/改)
- del mykey(删)
- get mykey(查)
- keys *(查所有的key和value,Redis是单线程接收命令的,因此如果数据量很大的情况下,会阻塞Redis接收后续命令)
- key my*(模糊查找key)
- dbsize(查数据库有多少个key)
- exists mykey1(查看某个key是否存在,1表示存在,0表示不存在)
- del mykey1 mykey2(支持删除多个,返回删除的个数,0,1,2…)
- type mykey(查看key的类型)
- object encoding mykey(查看某个key在redis中的内部数据类型,String,List那种是Redis对外的数据类型)
Redis数据类型
常用数据类型
- String
- Hash
- Set
- List
- Zset
不常用
- Hyperloglog
- Geospatial
- Streams
边栏推荐
- Detailed and comprehensive postman interface testing practical tutorial
- token、jwt、oauth2、session解析
- 21天学习挑战赛(2)图解设备树的使用
- 运维监控系统之Open-Falcon
- 引领数字医学高地,中山医院探索打造未来医院“新范式”
- Solve the problem of port occupancy Port xxxx was already in use
- Dynamic management of massive service instances
- XMjs cross-domain problem solving
- Beidou no. 3 short message terminal high slope in open-pit mine monitoring programme
- Growth-based checkerboard corner detection method
猜你喜欢
A small tool to transfer files using QR code - QFileTrans 1.2.0.1
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
shell脚本:for循环与while循环
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
Why is the pca component not associated
Everyone in China said data, you need to focus on core characteristic is what?
Walter talked little knowledge | "remote passthrough" that something
The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
毕设-基于SSM房屋租赁管理系统
21 Days Learning Challenge (2) Use of Graphical Device Trees
随机推荐
Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
The pit of std::string::find return value
引领数字医学高地,中山医院探索打造未来医院“新范式”
Beidou no. 3 short message terminal high slope in open-pit mine monitoring programme
Is your data safe in this hyperconnected world?
Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
Simple description of linked list and simple implementation of code
【已解决】Unity Coroutinue 协程未有效执行的问题
AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
十五. 实战——mysql建库建表 字符集 和 排序规则
A small tool to transfer files using QR code - QFileTrans 1.2.0.1
Talking about data security governance and privacy computing
leetcode-每日一题1403. 非递增顺序的最小子序列(贪心)
QT MV\MVC structure
CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations
(11) Metaclass
Initial solution of the structure
Step by step how to perform data risk assessment
Details such as compiling pretreatment