将DB1中键为detail_开头的数据移动到BD0
redis-cli -p 6393 -n 1 keys "detail_*" | xargs -i redis-cli -p 6393 -n 1 move {} 0
获取key为user_client_device.开头的set数据
redis-cli -a xxx -n 1 keys "user_client_device.*" | xargs -i redis-cli -a xxx -n 1 smembers {}
将DB1中键为detail_开头的数据移动到BD0
redis-cli -p 6393 -n 1 keys "detail_*" | xargs -i redis-cli -p 6393 -n 1 move {} 0
获取key为user_client_device.开头的set数据
redis-cli -a xxx -n 1 keys "user_client_device.*" | xargs -i redis-cli -a xxx -n 1 smembers {}