当前位置:网站首页>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
边栏推荐
- leetcode-每日一题1403. 非递增顺序的最小子序列(贪心)
- 905. Interval selection
- public static <T> List<T> asList(T... a) 原型是怎么回事?
- Native js realizes the effect of selecting and canceling all the multi-select boxes
- 数据库设计的酸(ACID)碱(BASE)原则
- Queue Topic: Recent Requests
- 通过模拟Vite一起深入其工作原理
- Redis1:Redis介绍、Redis基本特性、关系型数据库、非关系型数据库、数据库发展阶段
- 剑指Offer--找出数组中重复的数字(三种解法)
- ffmpeg 像素格式基础知识
猜你喜欢

Defect detection (image processing part)

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

Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors

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

Principle and Technology of Virtual Memory

How to discover a valuable GameFi?

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

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

21天学习挑战赛(2)图解设备树的使用

龙蜥社区第二届理事大会圆满召开!理事换届选举、4 位特约顾问加入
随机推荐
Object.defineProperty monitors data changes in real time and updates the page
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
Static method to get configuration file data
Queue Topic: Recent Requests
Redis key基本命令
Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
ffmpeg -sources分析
The usage of try...catch and finally in js
数据库设计的酸(ACID)碱(BASE)原则
cross domain solution
思考(八十八):使用 protobuf 自定义选项,做数据多版本管理
沃谈小知识 |“远程透传”那点事儿
Call Alibaba Cloud oss and sms services
Cybersecurity and the Metaverse: Identifying Weak Links
龙蜥社区第二届理事大会圆满召开!理事换届选举、4 位特约顾问加入
The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
惨遭打脸:字节某部门竟有这么多测试员
Use SuperMap iDesktopX data migration tool to migrate ArcGIS data
Web3.0 Dapps——通往未来金融世界的道路
[Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server