cache icon indicating copy to clipboard operation
cache copied to clipboard

keep method UseRandomizedTTL thread safe

Open peczenyj opened this issue 2 years ago • 2 comments

Hello

this method is not thread safe. I am not sure what was the intent with such method BTW

also, the LFU cache is already thread safe, it is not need add a mutex on the wrapper.

if it is possible remove this method at some point, there is no need for mutex

peczenyj avatar Sep 09 '23 05:09 peczenyj

Hello

I continue some refactors and create the pull request #101 where I convert this method to a functional option

you can close this PR if you want @vmihailenco

peczenyj avatar Sep 11 '23 14:09 peczenyj