通过cli删除redis键值

dark
LiinNs
  1. Windows系统下
    ./redis-cli.exe -a mypassword -h 127.0.0.1 -p 6379 -n 6 eval "redis.call('del', unpack(redis.call('keys','KEY*')))" 0
  2. *nux 系统下
    redis-cli keys "*" | xargs redis-cli del
    redis-cli keys "*"|xargs -I {} redis-cli del {}

更多redis命令