Skip to content

Handle key expiry using a single goroutine #5

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

Open
cnu opened this issue Oct 13, 2015 · 0 comments
Open

Handle key expiry using a single goroutine #5

cnu opened this issue Oct 13, 2015 · 0 comments
Assignees
Milestone

Comments

@cnu
Copy link
Owner

cnu commented Oct 13, 2015

Keep the expiry of keys as a field in DB.
setex and psetex will set the key's expiry in this field.
Have a scheduled goroutine which expires the keys regularly.

@cnu cnu self-assigned this Oct 13, 2015
@cnu cnu added this to the 0.1 milestone Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant