Erlang LRU: a fixed size LRU cache.

Copyright (c) 2015 BenoƮt Chesneau.

Version: 1.0.0.

Erlang LRU

Erlang LRU implements a fixed size LRU cache.

The cache is maintained in a process that could be added to a supervision treee.

Usage:

It's usage is very simple.


Size = 128,
Cache = lru:start(Cache),

lru:add(Cache, 1, 1),
lru:add(Cache, 2, 2),
lru:remove(Cache, 2),

Documentation

Full doc is available in the lru module.

Build

$ rebar3 compile