6 ms·
lru_cache has the benefit of being explicit about the replacement policy. So I find it more appropriate in cases where I want a size limit in the cache which, f
by epwr 3y ago
lru_cache has the benefit of being explicit about the replacement policy. So I find it more appropriate in cases where I want a size limit in the cache which, for me, is almost always.
I’m not sure use cases you see caches in, but any long running process should likely have a size limit on the cache.