当前位置:网站首页>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
边栏推荐
- Redis1:Redis介绍、Redis基本特性、关系型数据库、非关系型数据库、数据库发展阶段
- 21 Days Learning Challenge (2) Use of Graphical Device Trees
- 【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
- 基于生长的棋盘格角点检测方法
- Queue Topic: Recent Requests
- Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
- Based on holding YOLOv5 custom implementation of FacePose YOLO structure interpretation, YOLO data format conversion, YOLO process modification"
- [GYCTF2020]EasyThinking
- Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals
- dmp (dump) dump file
猜你喜欢

Ice Scorpion V4.0 attack, security dog products can be fully detected

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

Question about #sql shell#, how to solve it?

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

Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?

Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals

用Unity发布APP到Hololens2无坑教程

markdown如何换行——md文件

沃谈小知识 |“远程透传”那点事儿

Detailed and comprehensive postman interface testing practical tutorial
随机推荐
Principle and Technology of Virtual Memory
Use CH341A to program external Flash (W25Q16JV)
Burp installation and proxy settings
leetcode-每日一题1403. 非递增顺序的最小子序列(贪心)
MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
burp安装及代理设置
Spark基础【介绍、入门WordCount案例】
Flink 1.15.1 Cluster Construction (StandaloneSession)
21 Days Learning Challenge (2) Use of Graphical Device Trees
After the large pixel panorama is completed, what are the promotion methods?
2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
You may use special comments to disable some warnings. Three ways to report errors
Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
【已解决】Unity Coroutinue 协程未有效执行的问题
[Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
2022-08-04 第六小组 瞒春 学习笔记
Walter talked little knowledge | "remote passthrough" that something
YYGH-13-Customer Service Center
One hundred - day plan -- -- DAY2 brush
High Item 02 Information System Project Management Fundamentals