有效密钥
Redis 密钥是二进制安全的,因此任何东西都可以用作密钥。唯一的限制是它们必须小于 512MB。
有效密钥的示例:
7
++++
`~!@#$%^&*()-_=+
user:10134
search/9947372/?query=this%20is%20a%28test%29%20query
<div id="div64">
Any other string less than 512MB in size.
The raw binary content of an image or other binary file.
An entire multi-line text document.
An entire SQL query.
Any integer, hexadecimal, octal, or binary value.
Anything else you can think of less than 512MB in size.
无效的 Redis 密钥:
Anything larger than 512MB.