Skip to content

Optional jitter for the cache ttl#107

Open
landlockedsurfer wants to merge 1 commit intozio:series/2.xfrom
landlockedsurfer:ttl
Open

Optional jitter for the cache ttl#107
landlockedsurfer wants to merge 1 commit intozio:series/2.xfrom
landlockedsurfer:ttl

Conversation

@landlockedsurfer
Copy link

Hi!
Here's a pull request to work towards closing issue #91.
If you find the suggested changes pull worthy, I would also make ScopedCache use the new TimeToLive parameter.

@guizmaii
Copy link
Member

guizmaii commented Apr 5, 2025

@landlockedsurfer Can you rebase your branch, please?

@manfredweber
Copy link

Hi @guizmaii !
I decided to rework the implementation and just added a TimeToLive.jittered function that can be applied to any time to live computation (i.e. Exit[Error, Value] => Duration). Hope you prefer this also.

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.

3 participants