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

大佬有支持【确保队列中元素唯一】这一特性的计划吗? #7

Open
swatchion opened this issue Dec 2, 2022 · 0 comments

Comments

@swatchion
Copy link

比如使用队列来更新数据库中的记录, 队列中的对象有时候会出现同一个的 class 的不同 mutation,不同的mutation 示例实际上只有处于队列末端的元素是最近的一次更新,其他的 mutation 可以忽略掉,甚至不调用 handle 进行处理,因此队列中需要根据 key 的来维护一个唯一性的元素。

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