当前位置:网站首页>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
边栏推荐
- Talking about data security governance and privacy computing
- 905. Interval selection
- You may use special comments to disable some warnings. 报错解决的三种方式
- Slapped in the face: there are so many testers in a certain department of byte
- 【 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
- IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation
- From "useable" to "easy to use", domestic software is self-controllable and continues to advance
- Cybersecurity and the Metaverse: Identifying Weak Links
- 用CH341A烧录外挂Flash (W25Q16JV)
- MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
猜你喜欢
Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
告白数字化转型时代,时速云镌刻价值新起点
测试薪资这么高?刚毕业就20K
leetcode-每日一题1403. 非递增顺序的最小子序列(贪心)
Everyone in China said data, you need to focus on core characteristic is what?
Is your data safe in this hyperconnected world?
Step by step how to perform data risk assessment
Question about #sql shell#, how to solve it?
通过模拟Vite一起深入其工作原理
Dynamic management of massive service instances
随机推荐
毕设-基于SSM房屋租赁管理系统
Ffmpeg - sources analysis
调用阿里云oss和sms服务
2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
From "useable" to "easy to use", domestic software is self-controllable and continues to advance
Burp installation and proxy settings
Hash table lookup (hash table)
The usage of try...catch and finally in js
Why is the pca component not associated
Distributed systems revisited: there will never be a perfect consistency scheme...
Solve the problem of port occupancy Port xxxx was already in use
ffmpeg enumeration decoders, encoders analysis
【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
包拉链不可用,但是是被另一个包。
基于生长的棋盘格角点检测方法
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
Thinking (88): Use protobuf custom options for multi-version management of data
QT: The Magical QVarient
Dynamic management of massive service instances
The linear table lookup