Skip to content

fix: register deadline for tree values when ttl is informed#8

Merged
Farenheith merged 1 commit intomainfrom
fix-custom-ttl
Oct 1, 2023
Merged

fix: register deadline for tree values when ttl is informed#8
Farenheith merged 1 commit intomainfrom
fix-custom-ttl

Conversation

@Farenheith
Copy link
Copy Markdown
Member

custom ttl weren't work as expected when values must be saved on tree nodes, as the storage ttl was the only expiration control.

Now, the deadline for each saved node is saved according to the informed ttl (when it is informed)
Also, getCurrentTtl is specified on the storage interface so the library can elect between the current ttl left and the custom one informed, to guarantee that the key will be kept at least for the duration of the latest key to be expired

@Farenheith Farenheith merged commit 332c85f into main Oct 1, 2023
codibrebot pushed a commit that referenced this pull request Oct 1, 2023
## [0.8.1](v0.8.0...v0.8.1) (2023-10-01)

### Bug Fixes

* register deadline for tree values when ttl is informed ([#8](#8)) ([332c85f](332c85f))
@Farenheith Farenheith deleted the fix-custom-ttl branch October 1, 2023 23:51
@codibrebot
Copy link
Copy Markdown

🎉 This PR is included in version 0.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants