a fixed size LRU cache.
Erlang Shell
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src
support
.gitignore
.travis.yml
LICENSE
README.md
rebar.config
rebar.lock

README.md

Erlang LRU: a fixed size LRU cache.

Copyright (c) 2015 Benoît Chesneau.

Version: 1.3.1.

Erlang LRU

Erlang LRU implements a fixed size LRU cache.

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

Usage:

Its usage is very simple.

Size = 128,
{ok, Cache} = lru:start(Size),

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