mperham/dalli — pull request #274 by brianmario (2012-10-13 00:43:34+00:00)
Title: Allow serializer to be configurable

This change adds a new class level accessor `Dalli.serializer` which lets you change the serializer used when storing and retrieving things from cache (IE: when :raw is false).

The default is still Marshal so folks who upgrade to a version that has this change won't notice a thing.

The rationale behind this change is that Ruby's Marshal load/dump can be pretty slow depending on the size of the object being [de]serialized. It also means that the cache data can only be used by a Ruby program.

NOTE: I'm not sure how to get the test to find the memcached server so this pull request as-is will probably fail on travis. Help? ;)