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