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

大佬 能不能增加个根据文件批量删除key的功能 #1156

Closed
NB611 opened this issue Jan 18, 2024 · 3 comments
Closed

大佬 能不能增加个根据文件批量删除key的功能 #1156

NB611 opened this issue Jan 18, 2024 · 3 comments

Comments

@NB611
Copy link

NB611 commented Jan 18, 2024

OS

Windows

VERSION

1.6.1

ISSUE DESCRIPTION

有时候需要删除上万的key,而且这些key还无法模糊查询。能不能增加个功能,按照文件中的key批量删除

@qishibo
Copy link
Owner

qishibo commented Jan 31, 2024

倒是不难,不过感觉这需求更适合用redis-cli操作

@fjqingyou
Copy link
Contributor

关于这个有个点子,与其添加批量删除,还不如类似 sql 事务导入并执行的支持。
导入一个外部文件,顺序执行事务各个语句。具备了用户可扩展性、并且可多次重用事务逻辑!

@qishibo
Copy link
Owner

qishibo commented Mar 19, 2024

关于这个有个点子,与其添加批量删除,还不如类似 sql 事务导入并执行的支持。
导入一个外部文件,顺序执行事务各个语句。具备了用户可扩展性、并且可多次重用事务逻辑!

想法很棒,控制台可以直接执行lua脚本,脚本中指定keys查询并进行各种原子操作。后面可以考虑支持lua脚本的导入,就不用每次重复输入了

@qishibo qishibo closed this as completed Jun 11, 2024
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

3 participants