当前位置:网站首页>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
边栏推荐
- You may use special comments to disable some warnings. Three ways to report errors
- [Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
- (11) Metaclass
- Object.defineProperty monitors data changes in real time and updates the page
- STM32 uses stm32cubemx LL library series tutorial
- dmp (dump) dump file
- 用Unity发布APP到Hololens2无坑教程
- ffmpeg pixel format basics
- 2022 Hangzhou Electric Multi-School 1st Game
- The pit of std::string::find return value
猜你喜欢

用CH341A烧录外挂Flash (W25Q16JV)

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

How to discover a valuable GameFi?

Walter talked little knowledge | "remote passthrough" that something

Defect detection (image processing part)

2022-08-04 The sixth group, hidden from spring, study notes

21 Days Learning Challenge (2) Use of Graphical Device Trees

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

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

Initial solution of the structure
随机推荐
21 Days Learning Challenge (2) Use of Graphical Device Trees
The problem of lack of dynamic library "libtinfo.so.5" in ksql application under UOS system
从“能用”到“好用” 国产软件自主可控持续推进
测试薪资这么高?刚毕业就20K
ffmpeg 像素格式基础知识
Thinking (88): Use protobuf custom options for multi-version management of data
Linux下常见的开源数据库,你知道几个?
public static
List asList(T... a) What is the prototype? .NET Application -- Helloworld (C#)
Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
为什么pca分量没有关联
Open Source License Description LGPL
QT language file production
rpc-remote procedure call demo
达梦8数据库导出导入
Dynamic management of massive service instances
【 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
Dive into how it works together by simulating Vite
Queue Topic: Recent Requests
Native js realizes the effect of selecting and canceling all the multi-select boxes