Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] fastest mother-fucking journal ever #21

Open
2 tasks
fprochazka opened this issue Feb 17, 2014 · 0 comments
Open
2 tasks

[RFC] fastest mother-fucking journal ever #21

fprochazka opened this issue Feb 17, 2014 · 0 comments
Labels

Comments

@fprochazka
Copy link
Member

Inspiration: Cache – FileStorage without FileJournal with TAGS support – working solution


Let's not delete the cache on invalidation and just let it rot untill it's deleted by itself or flushed on deployment. Let's say we instead of deleting the keys in database on invalidation, set some value that would mean some TAG was invalidated at that given time.

On read, there would be always check (there could be lua script doing this saving bandwidth) that the key has tags and if it has tags, than there would be check when was the last time the tag was deleted and if the cache entry is older then the flushing by tag, no value would be returned but instead the one entry will be deleted.

Garbage collection could be done using maxmemory=volatile-ttl as stated in #20


someone must:

  • impelement proof-of-concept
  • test it on hight traffic site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant