当前位置:网站首页>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
边栏推荐
- rpc-remote procedure call demo
- 905. 区间选点
- Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
- Slapped in the face: there are so many testers in a certain department of byte
- Defect detection (image processing part)
- Hash table lookup (hash table)
- 包拉链不可用,但是是被另一个包。
- Bubble Sort and Quick Sort
- 引领数字医学高地,中山医院探索打造未来医院“新范式”
- [Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
猜你喜欢
![[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters](/img/89/8adef42b0cfd154e6fa7205afaeade.png)
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters

静态方法获取配置文件数据

2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
![Tencent Cloud [Hiflow] New Era Automation Tool](/img/ac/5c61424f22cd9fed74dcd529fdb6a4.png)
Tencent Cloud [Hiflow] New Era Automation Tool

On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion

【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can

public static <T> List<T> asList(T... a) 原型是怎么回事?

引领数字医学高地,中山医院探索打造未来医院“新范式”

In 2022, you still can't "low code"?Data science can also play with Low-Code!

Solana NFT开发指南
随机推荐
Dameng 8 database export and import
905. Interval selection
ffmpeg -sources分析
【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
You may use special comments to disable some warnings. 报错解决的三种方式
达梦8数据库导出导入
剑指Offer--找出数组中重复的数字(三种解法)
ASP.NET应用程序--Hello World
从“能用”到“好用” 国产软件自主可控持续推进
[Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
(11) Metaclass
QStyle platform style
沃谈小知识 |“远程透传”那点事儿
调用阿里云oss和sms服务
Shell script: for loop and the while loop
Use CH341A to program external Flash (W25Q16JV)
On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
In 2022, you still can't "low code"?Data science can also play with Low-Code!
基于生长的棋盘格角点检测方法
Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals