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

Compression support #222

Open
buinauskas opened this issue Aug 21, 2024 · 0 comments
Open

Compression support #222

buinauskas opened this issue Aug 21, 2024 · 0 comments

Comments

@buinauskas
Copy link

buinauskas commented Aug 21, 2024

Hello, before I begin, thank you for an excellent library!

Recently, in one of our services, we started caching more and have reached maximum available memory, meaning that Redis will evict old keys and our cache-hit ratio suffers.

The async Redis cache stores data using JSON format. It's not the most compact format, and there's little to do with our underlying data structures.

Could compression be supported before caching the underlying data as an opt-in? I am willing to implement it instead of hacking something in our project.

I was planning on using https://crates.io/crates/async-compression and its available encoders.

Thanks!

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

No branches or pull requests

1 participant