如果只有telnet(而不是’redis-cli’),则需要使用Redis二进制安全统一协议在键名中使用空格,例如:
telnet localhost 6379*2$3GET$17field with spaceshello (this is Redis answer if "field with spaces" contains value "hello")Explanation:*2 = Number of arguments (first arg is "GET" and second is "field with spaces")$3 = length of first argument ("GET" contains 3 bytes)$17 = length of second argument ("field with spaces" contains 17 bytes)有关Redis二进制安全协议的更多信息:http :
//redis.io/topics/protocol



