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

固定容量的zset #23

Open
someview opened this issue Aug 22, 2023 · 0 comments
Open

固定容量的zset #23

someview opened this issue Aug 22, 2023 · 0 comments

Comments

@someview
Copy link

场景:
在某些场景下,我们需要固定容量的zset,hash,或者set,一个简单的例子就是自由聊天室,只允许最大固定人数的群成员,过期淘汰或者超过容量淘汰。
原理:
类似于redis的淘汰策略,检查到容量超标了,淘汰掉有效期最小的元素.

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