sorentwo / readthis

:newspaper: Pooled active support compliant caching with redis
MIT License
504 stars 40 forks source link

Enable customizing serializers #21

Closed sorentwo closed 9 years ago

sorentwo commented 9 years ago

Introduces serializer customization. Usage is outlined in the README. Here's a quick summary:

# Set custom serializers
Readthis.serializers << Oj
Readthis.serializers << MessagePack

# Freeze them to prevent further usage
Readthis.serializers.freeze!

# Reset back to the three defaults
Readthis.serializers.reset!

Addresses #18 @fabn

fabn commented 9 years ago

Everything look good. Nice job.

sorentwo commented 9 years ago

Merged into master manually.