Skip to content

Conversation

artefactop
Copy link
Contributor

No description provided.

fogfish added a commit that referenced this pull request Jul 19, 2013
@fogfish fogfish merged commit 6264aec into fogfish:master Jul 19, 2013
@fogfish
Copy link
Owner

fogfish commented Jul 19, 2013

Thanks for contribution!
My initial plans was to implement this cache application as library, meaning that each client application is responsible to inject "cache instance" to their supervisor tree but "default" cache looks reasonable to me.

BTW, the current implementation maintain two ETS tables per cache. One is hash-table with O(1) read/write access but another TTL index with O(log N). Therefore, cache read/write performance is bound to TTL index but there is ability to define custom TTL per item with precise granularity.

After the discussion on the Erlang mailing list, I've created experimental branch where TTL index is dropped... I need to share that branch here.

  • Dmitry

@artefactop artefactop deleted the otp_behaviour branch July 22, 2013 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants