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

关于前缀的问题 #507

Open
WsProgrammer opened this issue Apr 15, 2024 · 1 comment
Open

关于前缀的问题 #507

WsProgrammer opened this issue Apr 15, 2024 · 1 comment

Comments

@WsProgrammer
Copy link

WsProgrammer commented Apr 15, 2024

RedisHelper.Keys返回的key全部带前缀,为什么 RedisHelper.Del删除时的key使用的又不是带前缀,这个设计我一直没有搞懂,那RedisHelper.Keys返回直接不带前缀不就好啦。。。而且前缀的含义不就key的一部分吗,怎么删除的时候有不用加前缀啦。。。。我这里前缀是dev,
image
用工具查出来的key也带dev但是删除时就要把dev去掉,感觉这个操作很有歧义啊

@2881099
Copy link
Owner

2881099 commented Apr 15, 2024

Keys是模糊查询,返回的就是原生的key

Del 不方便对内容做裁剪,可能出现更难排查的问题

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