解决客户端Redis中文乱码问题
启动客户端的时候添加 --raw 选项即可
wangyulong@code-local:~$ redis-cli 127.0.0.1:6379> set key1 '上海' OK 127.0.0.1:6379> get key1 "\xe4\xb8\x8a\xe6\xb5\xb7" 127.0.0.1:6379> wangyulong@code-local:~$ redis-cli --raw 127.0.0.1:6379> get key1 上海 127.0.0.1:6379>
let the world have no hard-to-write code ^-^