[erlang-questions] Best way to implement a simple cache
Tue Dec 27 19:48:43 CET 2011
save your time:
On Dec 27, 2011, at 7:22 PM, ricardo_bcl wrote:
> I decided to implement a very simple cache mechanism using ETS:
> For now, it only controls the number of elements in cache, because it's
> faster and it did what I wanted, but can be easily modified to prune it
> terms of bytes.
> Jan Vincent Liwanag wrote
>> Hi guys,
>> 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.
>> Jan Vincent Liwanag
>> erlang-questions mailing list. See http://www.erlang.org/faq.html
>> erlang-questions (at) erlang.org
> View this message in context: http://erlang.2086793.n4.nabble.com/Best-way-to-implement-a-simple-cache-tp2118502p4237850.html
> Sent from the Erlang Questions mailing list archive at Nabble.com.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions