有效金鑰
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.