删除通配kubiex:market:history_data_swap_的所有key 注:如果有很多键,手动删除会比较麻烦,可以使用 Lua 脚本来批量删除: ~# redis-cli -h ip -a 127.0.0.1:6379> EVAL "return redis.call('del', unpack(redis.call('keys', 'kubiex:market:history_data_swap_*')))" 0 (integer) 111 至此通配的key被全部删除