当前位置:网站首页>Redis deletes keys in batches according to regular rules
Redis deletes keys in batches according to regular rules
2022-08-11 04:28:00 【A rookie is a god】
Redis is an open source, advanced key-value store and a fit-for-purpose solution for building high-performance, scalable web applications.
Redis has three main features that make it superior to other key-value data storage systems:
1. Redis keeps its database completely in memory and only uses disk for persistence.
2. Compared with other key-value data stores, Redis has a relatively rich set of data types.
3.Redis can copy data to any number of slaves.
Redis currently does not support the command to delete keys in batches, but we sometimes need to delete keys that meet a certain rule. There are two ways:
1. Use redis-cli keys "PRO*" to get keys starting with PRO, and then use redis-cli del to delete these keys---too cumbersome, not recommended
2. Use redis-cli keys "PRO*" |xargs redis-cli del to delete once, it is convenient and will not be missed
边栏推荐
- Add PRODUCT_BOOT_JARS and classes to provide jar packages to applications
- Where can machine learning be applied?What is machine learning useful for?
- 无线电射频能量的收集
- Mysql: set the primary key to automatically increase the starting value
- send_sig: 内核执行流程
- Interchangeability and Measurement Technology—Surface Roughness Selection and Marking Method
- 机器学习可以应用在哪些场景?机器学习有什么用?
- 0 Basic software test for career change, self-study for 3 months, 12k*13 salary offer
- C# 一周入门高级编程之《C#-LINQ》Day Four
- [FPGA] day19- binary to decimal (BCD code)
猜你喜欢

leetcode刷题第13天二叉树系列之《98 BST及其验证》

What is Machine Reinforcement Learning?What is the principle?

Day20 FPGA 】 【 - block the I2C read and write EEPROM

"110 Balanced Binary Tree Judgment" in leetCode's 14-day binary tree series

Self-research capability was recognized again, and Tencent Cloud Database was included in the Forrester Translytical report

Interchangeable Measurement Techniques - Geometric Errors

Jetson Orin平台4-16路 GMSL2/GSML1相机采集套件推荐

这些云自动化测试工具值得拥有

一文读懂 高性能可预期数据中心网络

交换机--- 生成树--三层架构总结
随机推荐
简历里写了会代码,却依然过不了面试这一关
CTO said that the number of rows in a MySQL table should not exceed 2000w, why?
AVH 动手实践 (二) | 在 Arm 虚拟硬件上部署 PP-OCR 模型
洛谷P4560 Wall 砖墙
shell监视gpu使用情况
网络安全培训机构哪家好?排名怎么选择?
Echart地图的省级,以及所有地市级下载与使用
Interchangeability and Measurement Technology—Surface Roughness Selection and Marking Method
shell monitors gpu usage
力扣——青蛙跳台阶问题
洛谷P4847 银河英雄传说V2
About the pom.xml file
Callable实现多线程
【服务器安装Redis】Centos7离线安装redis
洛谷P1763 埃及分数
Redis:解决分布式高并发修改同一个Key的问题
send_sig: 内核执行流程
[FPGA] Design Ideas - I2C Protocol
leetcode刷题第13天二叉树系列之《98 BST及其验证》
洛谷P1196 银河英雄传说