当前位置:网站首页>Redis key basic commands
Redis key basic commands
2022-08-05 03:32:00 【Hao Kai】
Redis key basic commands
Redis key basic commands (the most commonly used: String type as an example)
The command does not need to be memorized. The tab key will prompt the command format. If it is not the command you want, continue to press it.
- set mykey myvalue(add/change)
- del mykey(delete)
- get mykey(check)
- keys *(Check all keys and values, Redis receives commands in a single thread, so if the amount of data is large, Redis will be blocked from receiving subsequent commands)
- key my*(fuzzy search key)
- dbsize(check how many keys the database has)
- exists mykey1 (check if a key exists, 1 means it exists, 0 means it doesn't exist)
- del mykey1 mykey2 (supports multiple deletions, returns the number of deletions, 0, 1, 2...)
- type mykey(check the type of key)
- object encoding mykey (check the internal data type of a key in redis, String and List are the external data types of Redis)
Redis data types
Common data types
- String
- Hash
- Set
- List
- Zset
Infrequently used
- Hyperloglog
- Geospatial
- Streams
边栏推荐
- 2022.8.4-----leetcode.1403
- Static method to get configuration file data
- 【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
- One hundred - day plan -- -- DAY2 brush
- Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
- 数学-求和符号的性质
- [Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
- 冰蝎V4.0攻击来袭,安全狗产品可全面检测
- The sword refers to Offer--find the repeated numbers in the array (three solutions)
- ASP.NET application--Hello World
猜你喜欢

用CH341A烧录外挂Flash (W25Q16JV)

Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full

Initial solution of the structure

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

IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation

[TA-Frost Wolf_may-"Hundred Talents Project"] Graphics 4.3 Real-time Shadow Introduction

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

大像素全景制作完成后,推广方式有哪些?

2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试

七夕节代码表白
随机推荐
数组常用方法总结
Swing有几种常用的事件处理方式?如何监听事件?
数学-求和符号的性质
2022-08-04 第六小组 瞒春 学习笔记
惨遭打脸:字节某部门竟有这么多测试员
告白数字化转型时代,时速云镌刻价值新起点
[Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
今年七夕,「情蔬」比礼物更有爱
You may use special comments to disable some warnings. Three ways to report errors
Principle and Technology of Virtual Memory
Hash table lookup (hash table)
Getting Started with Kubernetes Networking
AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
包拉链不可用,但是是被另一个包。
剑指Offer--找出数组中重复的数字(三种解法)
Defect detection (image processing part)
.NET应用程序--Helloworld(C#)
Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals
How to Add Category-Specific Widgets in WordPress
After the large pixel panorama is completed, what are the promotion methods?