redis的某些key居然帶有空格,這時(shí)要如何讀取呢?
get field with spaces
get "field with spaces"
get 'field with spaces'
這三個(gè)都返回相同的錯(cuò)誤.
And all this three return same error.
-ERR wrong number of arguments for 'get' command
正確的使用方法,如下:
get "field\ with\ spaces"
在這個(gè)鏈接里,找到的答案:
How to get values from Redis using keys which contains spaces? - Stack Overflow

redis-key-blank.png