Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis keys 命令问题 #215

Open
lusi1990 opened this issue Apr 17, 2023 · 0 comments
Open

redis keys 命令问题 #215

lusi1990 opened this issue Apr 17, 2023 · 0 comments

Comments

@lusi1990
Copy link

lusi1990 commented Apr 17, 2023

需知

升级feapder,保证feapder是最新版,若BUG仍然存在,则详细描述问题

pip install --upgrade feapder

问题
无意中看到了 redisdb 中的 getkeys,current_status 方法使用了 keys 命令, 这会导致整个redis 被锁住, 影响线上的正常流程. 请使用 SCAN 方法.
参考 KEYS, SCAN

截图
image

image

代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant