命令行连接
redis-cli.exe -h 127.0.0.1 -p 6379 -a 123456
telnet 127.0.0.1 6379
auth 123456
集群相关命令
cluster info
cluster nodes
cluster keyslot <key>
cluster slots
cluster countkeysinslot <slot>
cluster getkeysinslot <slot> <count>
redis 集群管理工具 redis-trib.rb
redis-trib.rb info <集群节点ip:port>
redis-trib.rb check <集群节点ip:port>
redis-trib.rb call <集群节点ip:port> get key
scan 命令进行查询
scan 0 match key* count 5
含双引号的 key 和 value 处理
hget goods:specId:orderId:386498 '"11954262_1_1"'
set test '"value"'
get test
> "value"