为什么禁用redis keys命令的呢? #1662
Answered
by
unknowissue
littlefisher666
asked this question in
Q&A
-
在这个commit中看到把keys命令给下掉了,这个是什么原因呢? |
Beta Was this translation helpful? Give feedback.
Answered by
unknowissue
Jul 8, 2022
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
littlefisher666
-
@unknowissue 感谢回复,之前没关注过scan命令,一直使用的keys命令的。去看了下源码是支持scan命令的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
keys 是有损性能的高危命令。
keys 使用的方法,可以参考 https://www.runoob.com/redis/keys-keys.html
由此,可以想到性能问题,比如 https://juejin.cn/post/6855129005172097031
https://blog.csdn.net/qq_37102984/article/details/115386745
https://blog.csdn.net/sinat_33718563/article/details/123411377