当前位置:网站首页>Redis 批量删除数据(通配符)
Redis 批量删除数据(通配符)
2022-04-22 14:03:00 【m0_54850604】
之前研发有让我Redis中所有以"newHand"开头的键。在这边记录下这个方法:
假设Redis的IP地址为192.168.0.1,密码为123456,则批量删除以"newHand"开头的键的命令为:
redis-cli -h 192.168.0.1 -a 123456 KEYS "newHand*" | xargs redis-cli -h 192.168.0.1 -a 123456 DEL
版权声明
本文为[m0_54850604]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_54850604/article/details/124339811
边栏推荐
- A solution to the problem of buying and selling stocks by force deduction
- Word length and data type
- On QPS, TPS, number of concurrent users and throughput
- QT explorer and Use of QRC file
- LeetCode-386 字典序排数
- 处理高并发问题思路
- 【机器人学习】移动机器人里程计学习记录
- How to use openfeign to call the third-party interface
- 2022年危险化学品经营单位主要负责人考试练习题及答案
- uniapp运行到微信开发者工具中小程序端页面空白的解决办法
猜你喜欢

Translucenttb Chinese interface - Chinese menu - how to use - win11 taskbar transparent effect

I changed the bug in the morning and was informed of being laid off in the afternoon

idea中pom.xml文件里mysql5.7坐标报红出错

Redis (VI) - set of common data types of redis

回忆,这一年(华师918血泪贴)

Recall, this year (Huashi 918 blood and tears paste)

iMeta: 整合宏组学重新认识生命和环境科学

11 standard library of in-depth C language and program operation principle: in-depth understanding of standard IO (learning notes)

产业园区数字化运营管理之“精准招商”篇

Chapitre sur la promotion précise des investissements dans la gestion de l'exploitation numérique des parcs industriels
随机推荐
Method of running uniapp to applet simulator - uniapp opens wechat developer tool preview support - hbuilderx
Crater encountered in calling bash script by makefile
"Precise investment promotion" of digital operation and management of Industrial Park
plsql developer文件编码格式设置
From 10K to 30K monthly salary: automatic test
LeetCode——字符的最短距离
【终于等到你】微信转发语音的方法 - 语音信息转发
The more "intelligent" the machine is, the easier it is for data taggers to be eliminated? Manfu Technology
[pytorch] implement the simplified version of yoov3 [v] and realize the yoov3 loss function (I)
Leetcode -- the shortest distance between characters
分析电脑使用变慢的七大原因
华为云媒体査勇:华为云在视频AI转码领域的技术实践
Go down and continue to go down. Xiaohui's fund has lost 640000...
Detailed explanation of heap sorting (C language)
Imeta: integrating macroomics to re understand life and Environmental Sciences
Leetcode-3 longest substring without duplicate characters
Single stage and two-stage target detection
Redis(四)-Redis的常用数据类型之String字符串
Electromagnetic furnace heating reflow welding
独立站运营 | 6个Facebook推广小技巧,你都知道吗?