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
Isn't there an issue in ms vs secs metrics? cacheTtl is in secs, right? Looks like it will make Math.random() < probability always true, which will lead to reading from cache.
Here shouldn't we try to use expirationTtl from options when we set a key/value?
As for the second thing, while it would be more efficient, I don't think it actually hurts anything to cache longer, since we check for expiration with the probability check anyway?
Hello. I have several questions, all of them around one issue. So I am using BetterKV and I noticed that I don't see much reduction in KV read usage.
Question about line:
FlareUtils/src/BetterKV/index.ts
Line 148 in b223d82
Isn't there an issue in ms vs secs metrics?
cacheTtl
is in secs, right? Looks like it will makeMath.random() < probability
always true, which will lead to reading from cache.Here shouldn't we try to use
expirationTtl
from options when we set a key/value?FlareUtils/src/BetterKV/index.ts
Line 344 in b223d82
The text was updated successfully, but these errors were encountered: