If you only have telnet (and not 'redis-cli'), you need to use the Redis unified protocol to use spaces in key names, for example:
telnet localhost 6379 *2 $3 GET $17 field with spaces hello (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)
Additional information on the Redis binary safe protocol: http://redis.io/topics/protocol
source share