Redis-cli相关命令

127.0.0.1:6379> flushdb

127.0.0.1:6379> SELECT 1 
OK
127.0.0.1:6379[1]> GET db_number
(nil)
127.0.0.1:6379[1]>
127.0.0.1:6379[1]> flushdb
OK
127.0.0.1:6379[1]> SELECT 0
OK
127.0.0.1:6379> keys *
1) "device_online_status_counter"
127.0.0.1:6379> 

127.0.0.1:6379> type app_download_top_chart
hash
127.0.0.1:6379> hget app_download_top_chart admin
"{\"categories\":[\"\xe5\xae\x9e\xe5\x90\x8d\xe5\x88\xb6\xe9\x87\x87\xe9\x9b\x86\",\"\xe7\xbe\x8e\xe5\x9b\xa2\xe5\xa4\x96\xe5\x8d\x96\xe5\x95\x86\xe5\xae\xb6\xe7\x89\x88\",\"ABC\",\"APP\",\"\xe6\x99\xba\xe8\x83\xbd\xe8\xae\xbf\xe5\xae\xa2\",\"\xe7\xa1\xac\xe4\xbb\xb6\xe5\x8a\xa9\xe6\x89\x8b\",\"E\xe8\xae\xbf\xe5\xae\xa2\",\"Chrome\",\"\xe7\xbe\x8e\xe5\x9b\xa2\xe7\xae\xa1\xe5\xae\xb6\",\"\xe4\xba\x91\xe5\xba\x97Pro\"],\"series\":[86984,11642,10229,10056,5855,5808,2969,2275,1496,1394]}"

127.0.0.1:6379> hgetall app_download_top_chart
1) "admin"
2) "{\"categories\":[\"\xe5\xae\x9e\xe5\x90\x8d\xe5\x88\xb6\xe9\x87\x87\xe9\x9b\x86\",\"\xe7\xbe\x8e\xe5\x9b\xa2\xe5\xa4\x96\xe5\x8d\x96\xe5\x95\x86\xe5\xae\xb6\xe7\x89\x88\",\"ABC\",\"APP\",\"\xe6\x99\xba\xe8\x83\xbd\xe8\xae\xbf\xe5\xae\xa2\",\"\xe7\xa1\xac\xe4\xbb\xb6\xe5\x8a\xa9\xe6\x89\x8b\",\"E\xe8\xae\xbf\xe5\xae\xa2\",\"Chrome\",\"\xe7\xbe\x8e\xe5\x9b\xa2\xe7\xae\xa1\xe5\xae\xb6\",\"\xe4\xba\x91\xe5\xba\x97Pro\"],\"series\":[86984,11642,10229,10056,5855,5808,2969,2275,1496,1394]}"

你可能感兴趣的:(Redis-cli相关命令)