[erlang-questions] How would you implement TTL for ETS based cache?
Max Bourinov
bourinov@REDACTED
Thu Mar 14 15:15:50 CET 2013
Hi Erlangers,
How would you implement TTL with callback for ETS based cache?
I want when TTL expires callback is triggered and cached value goes to DB.
For key I use 32 byte long binary(), value is not bigger than 8 KB.
Any suggestions?
p.s. elang:send_after/3 is a most brutal approach, but how would it be when
cache is under load?
Best regards,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130314/f47e3d0c/attachment.htm>
More information about the erlang-questions
mailing list