[erlang-questions] Best way to implement a simple cache

Jachym Holecek freza@REDACTED
Tue Nov 10 18:25:40 CET 2009


Hello,

# Jan Vincent 2009-11-10:
> I wanted your take on how to implement a simple small key-value
> cache, maybe holding around a few hundred tuples. The thing is, I
> don't want the cache to be consuming all my memory so that entries
> in the cache expires if it isn't read for some time or some maximum
> size is met.

An ETS table owned by a gen_server that runs periodic cleanup on it?

	-- Jachym


More information about the erlang-questions mailing list