当前位置:网站首页>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
边栏推荐
- QT MV\MVC structure
- Use CH341A to program external Flash (W25Q16JV)
- Use @Mapper to query the partition status of oracle and report an error
- 大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
- 2022.8.4-----leetcode.1403
- 从“能用”到“好用” 国产软件自主可控持续推进
- 2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试
- What is the difference between SAP ERP and ORACLE ERP?
- Step by step how to perform data risk assessment
- Details such as compiling pretreatment
猜你喜欢
Why is the pca component not associated
public static
List asList(T... a) What is the prototype? public static <T> List<T> asList(T... a) 原型是怎么回事?
QT MV\MVC structure
Dive into how it works together by simulating Vite
毕设-基于SSM房屋租赁管理系统
Is your data safe in this hyperconnected world?
Use CH341A to program external Flash (W25Q16JV)
10 years of testing experience, worthless in the face of the biological age of 35
Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
随机推荐
十五. 实战——mysql建库建表 字符集 和 排序规则
Dive into how it works together by simulating Vite
Kubernetes 网络入门
Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals
On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
ffmpeg enumeration decoders, encoders analysis
Walter talked little knowledge | "remote passthrough" that something
cross domain solution
Use Unity to publish APP to Hololens2 without pit tutorial
思考(八十八):使用 protobuf 自定义选项,做数据多版本管理
Slapped in the face: there are so many testers in a certain department of byte
Spark基础【介绍、入门WordCount案例】
You may use special comments to disable some warnings. 报错解决的三种方式
数学-求和符号的性质
运维监控系统之Open-Falcon
Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
QT MV\MVC structure
告白数字化转型时代,时速云镌刻价值新起点
Ffmpeg - sources analysis
Details such as compiling pretreatment