Rediskeyには特殊文字とスペースが含まれていますか?


平和開発の時...Redisキーにスペースがあることを確認します.
私の目に問題があることがわかります...これは実際の操作にも存在するRedisキーであり,Redis GUIプログラムAnotherRedisDesktopManagerの観点からもこの値は正常である.
💡 Another Redisデスクトップマネージャとは?
Redisのキーと値は簡単なGUIプログラムで、Redis GUIプログラムもMedisを使ったことがありますが、無料プログラムではAnother Redis Desktop Managerが一番使いやすいです.何度も使ったことはありませんが.
リンクのダウンロード👉 https://goanother.com/
だから突然好奇心が生まれた.Rediskeyにはすべての文字と特殊文字&スペースが含まれますか?
まず、公式文書を見てみましょう.
redis docs -> https://redis.io/docs/manual/data-types/data-types-tutorial/
Redis keys are binary safe, this means that you can use any binary sequence as a key, from a string like “foo” to the content of a JPEG file. The empty string is also a valid key.

A few other rules about keys:

Very long keys are not a good idea. For instance a key of 1024 bytes is a bad idea not only memory-wise, but also because the lookup of the key in the dataset may require several costly key-comparisons. Even when the task at hand is to match the existence of a large value, hashing it (for example with SHA1) is a better idea, especially from the perspective of memory and bandwidth.
Very short keys are often not a good idea. There is little point in writing “u1000flw” as a key if you can instead write “user:1000:followers”. The latter is more readable and the added space is minor compared to the space used by the key object itself and the value object. While short keys will obviously consume a bit less memory, your job is to find the right balance.
Try to stick with a schema. For instance “object-type:id” is a good idea, as in “user:1000”. Dots or dashes are often used for multi-word fields, as in “comment:1234:reply.to” or “comment:1234:reply-to”.
The maximum allowed key size is 512 MB.
... 英語が下手なのでパパグに訳して要約すると
  • Redisキーはバイナリセキュリティです.文字列からJPEGファイルの内容までのすべてのバイナリシーケンスをキーとして使用できます.空の文字列も有効です.
  • の長い鍵は、メモリだけでなく、データセットで鍵をクエリーするコストも高いため、良いアイデアではありません.
  • の意味が分からないほど背を短くしてもいい考えではありません.
  • で許可される最大鍵サイズは512 MBです.
  • ここでヴィナリーの安全とは何ですか?
    まず、バイナリとは何かを理解しましょう.バイナリはバイナリを表し、「1」と「0」だけで数字を表します.最終的に、バイナリSAFEは、Byteシーケンス(マシン処理の文字の形式)であれば、キーとして使用することができる.
    すべての人が使えるRediskeyと言えば、キーにスペースや特殊文字を付けないでください...😇