mperham/dalli — pull request #276 by brianmario (2012-10-18 09:21:37+00:00)
Title: Make compressor swappable

This change introduces a `Dalli.compressor` class accessor which can be used to swap out the code used for [de]compression in `Dalli`.

The object assigned with `Dalli.compressor=` needs to only respond to `compress` and `decompress`.

I don't mean to go overboard with configurability here... but I have a case where I'd like to use a much faster and potentially less space-efficient compression algorithm.

What do ya think?