sudo /usr/local/bin/redis-cli -h localhost -p 6379 --scan --pattern 'hello_*' | xargs /usr/local/bin/redis-cli -h localhost -p 6379 DEL
命令行方式批量删除Redis key
最新推荐文章于 2023-07-08 10:36:26 发布
sudo /usr/local/bin/redis-cli -h localhost -p 6379 --scan --pattern 'hello_*' | xargs /usr/local/bin/redis-cli -h localhost -p 6379 DEL