当前位置:网站首页>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
边栏推荐
- The pit of std::string::find return value
- 思考(八十八):使用 protobuf 自定义选项,做数据多版本管理
- Simple description of linked list and simple implementation of code
- Is your data safe in this hyperconnected world?
- Flink 1.15.1 Cluster Construction (StandaloneSession)
- In 2022, you still can't "low code"?Data science can also play with Low-Code!
- .NET应用程序--Helloworld(C#)
- 包拉链不可用,但是是被另一个包。
- 高项 02 信息系统项目管理基础
- rpc-remote procedure call demo
猜你喜欢
This year's Qixi Festival, "love vegetables" are more loving than gifts
Beidou no. 3 short message terminal high slope in open-pit mine monitoring programme
Web3.0 Dapps——通往未来金融世界的道路
The Tanabata copywriting you want has been sorted out for you!
Simple description of linked list and simple implementation of code
2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
After the large pixel panorama is completed, what are the promotion methods?
Growth-based checkerboard corner detection method
Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
[TA-Frost Wolf_may-"Hundred Talents Project"] Graphics 4.3 Real-time Shadow Introduction
随机推荐
You may use special comments to disable some warnings. Three ways to report errors
One hundred - day plan -- -- DAY2 brush
XMjs cross-domain problem solving
【软件测试】自动化测试之unittest框架
Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals
Countdown to 2 days|Cloud native Meetup Guangzhou Station, waiting for you!
Common open source databases under Linux, how many do you know?
Static method to get configuration file data
[Qixi Festival] Romantic Tanabata, code teaser.Turn love into a gorgeous three-dimensional scene and surprise her (him)!(send code)
Principle and Technology of Virtual Memory
The problem of lack of dynamic library "libtinfo.so.5" in ksql application under UOS system
Call Alibaba Cloud oss and sms services
测试薪资这么高?刚毕业就20K
.NET Application -- Helloworld (C#)
Mathematics - Properties of Summation Symbols
Bubble Sort and Quick Sort
21天学习挑战赛(2)图解设备树的使用
Package zip is not available, but is referred to by another package.
2022.8.4-----leetcode.1403
Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full