Skip to content

Memoize for a duration based on the memoized item #909

Answered by heubeck
scrocquesel asked this question in Q&A
Discussion options

You must be logged in to vote

Fun fact: Exactly your case let to the memoize operator, that's there today ;)
For the full story have a look to this issue and the linked PRs: #231

There were implementation but also design reasons that made it quite challenging to invalidate based on checks on the cached item.

My solution (up to now) was to have an validation on the jwt before consuming it, thowing some kind of expiry exception that cases a retry of the whole pipeline (that starts with requesting a fresh jwt).

But some time has passed by, I'm really curious, if there might be a solution in your sense possible.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jponge
Comment options

@scrocquesel
Comment options

@heubeck
Comment options

heubeck May 10, 2022
Collaborator

@scrocquesel
Comment options

@jponge
Comment options

Answer selected by scrocquesel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants