当前位置:网站首页>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
边栏推荐
- sql怎么找字段里所有数据为空的字段
- Growth-based checkerboard corner detection method
- Why is the pca component not associated
- 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
- ASP.NET application--Hello World
- [Software testing] unittest framework for automated testing
- 冰蝎V4.0攻击来袭,安全狗产品可全面检测
- 运维监控系统之Open-Falcon
- How to simulate the background API call scene, very detailed!
猜你喜欢
沃谈小知识 |“远程透传”那点事儿
shell脚本:for循环与while循环
public static
List asList(T... a) What is the prototype? dmp (dump) dump file
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
结构体初解
开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
运维监控系统之Open-Falcon
Everyone in China said data, you need to focus on core characteristic is what?
随机推荐
毕设-基于SSM房屋租赁管理系统
Beidou no. 3 short message terminal high slope in open-pit mine monitoring programme
In 2022, you still can't "low code"?Data science can also play with Low-Code!
结构体初解
burp安装及代理设置
High Item 02 Information System Project Management Fundamentals
Android Practical Development - Kotlin Tutorial (Introduction - Login Function Implementation 3.3)
[Solved] Unity Coroutine coroutine is not executed effectively
今年七夕,「情蔬」比礼物更有爱
新人如何入门和学习软件测试?
Object.defineProperty monitors data changes in real time and updates the page
[Software testing] unittest framework for automated testing
测试薪资这么高?刚毕业就20K
dmp (dump) dump file
Dynamic management of massive service instances
Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
YYGH-13-客服中心
You may use special comments to disable some warnings. 报错解决的三种方式
STM32 uses stm32cubemx LL library series tutorial