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

为什么不支持hash(map) 过期机制 #1263

Closed
Trree opened this issue Sep 5, 2018 · 1 comment
Closed

为什么不支持hash(map) 过期机制 #1263

Trree opened this issue Sep 5, 2018 · 1 comment

Comments

@Trree
Copy link

Trree commented Sep 5, 2018

  • 影响
    这样会造成内存和硬盘占用不断增加,需要手动删除数据。
  1. 为什么hash(map) 不支持过期机制?
  • 是因为正在实现中?
  • hash 与KV结构的过期机制在实现上有什么不同吗?
  • 查询是否需要更新过期时间?
  • 增删改是否需要更新过期时间?
  1. 应用层实现的方法?
  • 在插入数据的时候增加一个field: expire timestamp,保存过期时间,然后应用层在空闲的时候遍历删除过期的key?
@Trree Trree closed this as completed Sep 6, 2018
@alanhamlett
Copy link

Duplicate of #579.

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