windows下:
redis-cli eval "local keys = redis.call('keys', ARGV[1]) for i=1,#keys,5000 do redis.call('del', unpack(keys, i, math.min(i+4999, #keys))) end return #keys" 0 'value*'
linux下:
redis-cli keys "*" | xargs redis-cli del
windows下:
redis-cli eval "local keys = redis.call('keys', ARGV[1]) for i=1,#keys,5000 do redis.call('del', unpack(keys, i, math.min(i+4999, #keys))) end return #keys" 0 'value*'
linux下:
redis-cli keys "*" | xargs redis-cli del
StackExchange.Redis 模糊查询和删除
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M