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

Cache for thumbnail generation #604

Open
chibenwa opened this issue Mar 14, 2023 · 0 comments
Open

Cache for thumbnail generation #604

chibenwa opened this issue Mar 14, 2023 · 0 comments
Labels

Comments

@chibenwa
Copy link
Member

chibenwa commented Mar 14, 2023

CachingThumbnailGenerator that wraps another ThumbnailGenerator.

... Let's make a cache for this then!

Key: SHA-256(byte stream of the attachment)
Value: byte stream of the attachment

Technology to implement the cache: caffeine

  • Guice bindings for it.

  • metrics: cache size, hit rate

Think about a short cache retention (1 minute?)

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

2 participants