LimitedMapSet

LimitedMapSet is an extension of Elixir’s MapSet that keeps insertion order (FIFO) and automatically evicts the oldest elements when the limit is reached.

Examples

Add to your mix.exs:

def deps do
  [
    {:limited_map_set, "~> 0.1.0"}
  ]
end