chowells79 / lrucache

A simple pure LRU cache written in Haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the behaviour if maxSize is not specified?

singpolyma opened this issue · comments

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

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.