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
@maypok86 if the hitcount is greater than 4, then only save to disk. else ignore all one hit wonders that has lesser than 3 hits.
choosing what to save to disk saves on disk io and also reduce unnecessary write, extending the lifespan of ssd
p.s. : possible to have this feature? it'll be very useful
It looks relatively useful, but it seems that you don't need exactly hit count. Checking for one-hit wonder is more than enough.
I think I'll try to add this after the v2 release, but it won't be until May. Now I have almost no free time, and my mental health leaves much to be desired.
e.g. .HitCount() return the number of times the key is hit etc. possible to make it so that it returns both the value and hit count at the same time?
e.g. value, hitcount, err := cache.GetWithHitCount("key")
this will be extremely useful to check if corresponding data should be saved in disk cache etc
The text was updated successfully, but these errors were encountered: