lrucache icon indicating copy to clipboard operation
lrucache copied to clipboard

What is the behaviour if maxSize is not specified?

Open singpolyma opened this issue 5 years ago • 1 comments

Is it just the same as a Data.Map in that case?

singpolyma avatar Jun 06 '20 01:06 singpolyma

Mostly, except it still retains LRU ordering. You'd use it without a max size if you care about being able to use pop to get rid of the oldest entry or use toList to get insertion order, but don't care about automatically evicting the oldest entries.

chowells79 avatar Jun 06 '20 02:06 chowells79