Skip to content

固定容量的zset #23

Description

@someview

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions