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

Built-in compression support for the Redis cache? #1170

Closed
simenheg opened this issue Sep 1, 2017 · 1 comment
Closed

Built-in compression support for the Redis cache? #1170

simenheg opened this issue Sep 1, 2017 · 1 comment

Comments

@simenheg
Copy link

simenheg commented Sep 1, 2017

Hi. I’ve been pondering whether it would be good for the Redis cache to have built-in support for compression.

I imagine something similar to what python-memcached does could be done, where data with size above a user-specified limit is compressed and decompressed automatically on entry and retrieval.

Memcached has the advantage of being able to store an arbitrary 16-bit flag along with the data, so it’s easy to mark data that has been compressed. I’m not aware of a similar functionality in Redis, so I’m not sure what would be the best way to indicate which data has been compressed and not. Maybe the data could be prefixed with a bit flag when the compression feature is turned on.

Thoughts?

See also http://labs.octivi.com/how-we-cut-down-memory-usage-by-82/.

@lepture
Copy link
Contributor

lepture commented Feb 4, 2018

close it via #1249

@lepture lepture closed this as completed Feb 4, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants