当前位置:网站首页>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
边栏推荐
- sql怎么找字段里所有数据为空的字段
- dmp (dump) dump file
- 【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
- 21 Days Learning Challenge (2) Use of Graphical Device Trees
- Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
- MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
- The most effective seven performance testing techniques of software testing techniques
- One hundred - day plan -- -- DAY2 brush
- Solana NFT开发指南
- Native js realizes the effect of selecting and canceling all the multi-select boxes
猜你喜欢

Growth-based checkerboard corner detection method

Use CH341A to program external Flash (W25Q16JV)

今年七夕,「情蔬」比礼物更有爱

presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer

Walter talked little knowledge | "remote passthrough" that something

MySql的索引学习和使用;(本人觉得足够详细)
![[Solved] Unity Coroutine coroutine is not executed effectively](/img/ab/035ef004a561fb98d3dd1d7d8b5618.png)
[Solved] Unity Coroutine coroutine is not executed effectively

QT MV\MVC structure
![[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]](/img/c9/fff226b6d33a773b59a0314a99a788.png)
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]

ASP.NET应用程序--Hello World
随机推荐
You may use special comments to disable some warnings. Three ways to report errors
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
QT: The Magical QVarient
High Item 02 Information System Project Management Fundamentals
2022-08-04 The sixth group, hidden from spring, study notes
Dive into how it works together by simulating Vite
2022.8.4-----leetcode.1403
Initial solution of the structure
沃谈小知识 |“远程透传”那点事儿
Call Alibaba Cloud oss and sms services
数学-求和符号的性质
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
Common open source databases under Linux, how many do you know?
Thinking (88): Use protobuf custom options for multi-version management of data
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
How to find all fields with empty data in sql
How to sort multiple fields and multiple values in sql statement
Is your data safe in this hyperconnected world?
How to discover a valuable GameFi?
A small tool to transfer files using QR code - QFileTrans 1.2.0.1