How to disable LFU admission filter? #388
-
I have a specific scenario where I need to disable the LFU admission filter and use Moka as a simple LRU cache instead. However, I still want to use My guess is that I could disable the LFU filter by returning moka/src/sync_base/base_cache.rs Line 1380 in 2e904db Is this correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi.
I will review the code later today, but I think you will need to do the followings:
moka/src/sync_base/base_cache.rs Lines 1659 to 1664 in 2e904db |
Beta Was this translation helpful? Give feedback.
@PhotonQuantum
OK. I implemented the LRU policy via #390 and published
v0.12.5
to crates.io. The LRU policy has the LFU admission filter disabled.