例如删除以 user: 开头的键,执行如下命令:(命令行执行,非redis终端)
redis-cli -h 127.0.0.1 -a 'password' KEYS "user:*" | xargs redis-cli -h 127.0.0.1 -a 'password' DEL
例如删除以 user: 开头的键,执行如下命令:(命令行执行,非redis终端)
redis-cli -h 127.0.0.1 -a 'password' KEYS "user:*" | xargs redis-cli -h 127.0.0.1 -a 'password' DEL