当前位置:网站首页>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
边栏推荐
- LeetCode刷题第16天之《239滑动窗口最大值》
- Read the article, high-performance and predictable data center network
- 洛谷P2245 星际导航
- 拼多多店铺营业执照相关问题
- js uses the string as the js execution code
- LeetCode刷题第10天字符串系列之《125回文串验证》
- 【小记】BatchSize的数值是设置的越大越好吗
- C# 一周入门高级编程之《C#-LINQ》Day Four
- Interchangeability Measurements and Techniques - Calculation of Deviations and Tolerances, Drawing of Tolerance Charts, Selection of Fits and Tolerance Classes
- shell monitors gpu usage
猜你喜欢
Differences and connections between distributed and clustered
干货:服务器网卡组技术原理与实践
LeetCode刷题第11天字符串系列之《 58最后一个单词长度》
《卫星界》刊评“星辰大海”计划:孙宇晨为太空旅游带来新的机遇
[C Language] Getting Started
破解事务性工作瓶颈,君子签电子合同释放HR“源动力”!
"125 Palindrome Verification" of the 10th day string series of LeetCode brushing questions
Day20 FPGA 】 【 - block the I2C read and write EEPROM
"98 BST and Its Verification" of the 13th day of leetcode brushing series of binary tree series
【力扣】22.括号生成
随机推荐
洛谷P5139 z小f的函数
洛谷P4032 火锅盛宴
【FPGA】abbreviation
[Server installation Redis] Centos7 offline installation of redis
"110 Balanced Binary Tree Judgment" in leetCode's 14-day binary tree series
自研能力再获认可,腾讯云数据库入选 Forrester Translytical 报告
Introduction to c # a week of high-level programming c # - LINQ Day Four
洛谷P2580 于是他错误的点名开始了
Where can machine learning be applied?What is machine learning useful for?
Add PRODUCT_BOOT_JARS and classes to provide jar packages to applications
洛谷P2245 星际导航
力扣——旋转数组的最小数字
Callable实现多线程
【FPGA】day22-SPI protocol loopback
利用Navicat Premium导出数据库表结构信息至Excel
Binary tree related code questions [more complete] C language
Use jackson to parse json data in detail
js uses the string as the js execution code
洛谷P1763 埃及分数
机器学习可以应用在哪些场景?机器学习有什么用?