亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

linux - How to batch delete keys of a specific pattern under Redis
過去多啦不再A夢
過去多啦不再A夢 2017-06-29 10:09:05
0
2
1479

redis can find the keys of the specified pattern:

redis-cli -h [host] -p [port] -n [db] KEYS "pattern"

But how to delete the keys of a specific pattern during the delete operation?

過去多啦不再A夢
過去多啦不再A夢

reply all(2)
學(xué)霸

Delete keys of a specific pattern in batches under Redis

redis-cli -h [host] -p [port] -n [db] KEYS "pattern" | xargs redis-cli -h [host] -p [port] -n [db] DEL
淡淡煙草味

How to atomically delete keys matching a pattern using Redis

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template