[redis] redis连接远程客户端查询数据
F:
cd redis-2.8.12
redis-cli.exe -h 192.168.6.107 -p 16680
redis-cli.exe -h 192.168.6.107 -p 16681
redis-cli.exe -h 192.168.6.107 -p 16682
redis命令
http://doc.redisfans.com/index.html
在16680上查询查不到,提示去16682上查询
192.168.6.107:16680> get SOCIA:T_SOCIA_ALBUM_TALK:NUM:COMMENT:0125902127831756800
(error) MOVED 12480 192.168.6.107:16682
在16682上查询,结果为4
192.168.6.107:16682> get SOCIA:T_SOCIA_ALBUM_TALK:NUM:COMMENT:0125902127831756800
"4"
llen SOCIA:T_SOCIA_QUESTION_ANSWER:ALL:200024402720161111133421087:LIST
lrange SOCIA:T_SOCIA_QUESTION_ANSWER:ALL:200024402720161111133421087:LIST 0 10
1) "T_SOCIA_QUESTION_ANSWER:INFO:0114357115917496320201611111605081672000244027:HASH"
2) "T_SOCIA_QUESTION_ANSWER:INFO:0114357115917496320201611111334327962000244027:HASH"
hgetall T_SOCIA_QUESTION_ANSWER:INFO:0114357115917496320201611111605081672000244027:HASH
ZREVRANGE SOCIA:T_SOCIA_QUESTION_QUESTION:HOT:0126642573185892352:1:ZSET 0 10 WITHSCORES
ZSCORE SOCIA:T_SOCIA_QUESTION_QUESTION:HOT:0126642573185892352:2:ZSET 200024402620161215111550172
ZREM SOCIA:T_SOCIA_QUESTION_QUESTION:HOT:0126642573185892352:1:ZSET 200024402620161215111550172
ZINCRBY SOCIA:T_SOCIA_QUESTION_QUESTION:HOT:0126642573185892352:2:ZSET 5 200024402620161215111550172
模糊匹配key
keys SOCIA:T_SOCIA_ALBUM_ALBUM:2*