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

Keys好像没有加前缀prefix #203

Open
icejd opened this issue Sep 1, 2024 · 2 comments
Open

Keys好像没有加前缀prefix #203

icejd opened this issue Sep 1, 2024 · 2 comments

Comments

@icejd
Copy link

icejd commented Sep 1, 2024

Instance.Keys(pattern);
日志里显示:

KEYS resumefile:5832351:50*
没有带前缀,其它操作都有带前缀
版本号:1.2.15

@icejd
Copy link
Author

icejd commented Sep 1, 2024

因为我要先取得数组,然后进行批量删除,但现在Instance.Keys(pattern);如果我手动加了前缀,会取得完整路径的数组,但是Instance.Del(keys);删除的时候又会自动加上前缀

KEYS ygresume:resumefile:5832351:50*
DEL ygresume:ygresume:resumefile:5832351:50:pdf
有点烦恼

@2881099
Copy link
Owner

2881099 commented Sep 2, 2024

临时用 lua 解决

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

2 participants