You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staleTTL is only an option for getOrSet. Should also be available to set function
Why is staleTTL needed in set and get?
get: Doesn't need it because the whole purpose of staleTTL is to generate value in background, if we don't have a set, having stateTTL is not gonna help. set: staleTTL is not actually saved anywhere and checked by checking the createdAt of the value, so values created by set can be used with staleTTL in getOrSet.
Maybe I'm missing some scenario, an example is needed in that case.
staleTTL
is only an option forgetOrSet
. Should also be available toset
functionThe text was updated successfully, but these errors were encountered: