-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(persist): clean old entries upon loading store file (#295)
Adds a garbage collect mechanism to remove entries from the storer file saved on disk which has been expired. Expiration is calculated using the same `TTL` that is being used to remove storer files and the mechanism remove the entires that has not been updated in a period greater than the `TTL`
- Loading branch information
1 parent
bb90381
commit 5085008
Showing
2 changed files
with
122 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters