redis可以找指定pattern的keys:
redis-cli -h [host] -p [port] -n [db] KEYS "pattern"
但刪除操作如何刪除特定pattern的keys?
欧阳克2017-06-29 10:11:05
Redis下批次刪除特定pattern的keys
redis-cli -h [host] -p [port] -n [db] KEYS "pattern" | xargs redis-cli -h [host] -p [port] -n [db] DEL