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

feat: Add expire duration option #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lukas-reineke
Copy link

@lukas-reineke lukas-reineke commented Aug 13, 2024

Adds expire-duration option seconds.
list will not list items that are older than now - expire-duration
store will remove all items that are older than now - expire-duration

This is kind of a breaking change, the IDs change from sequential numbers to timestamps. So existing entries would not work with this (applies to the tests as well). I totally get if you can't merge this, I mainly wrote it for myself.

fix #100

Adds `expire-duration` option seconds.
`list` will not list items that are older than `now - expire-duration`
`store` will remove all items that are older than `now - expire-duration`

fix sentriz#100
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

Successfully merging this pull request may close these issues.

Feature request: add auto expiration duration
1 participant