docs suggestion for building ProxyBackends that massage data

Merged
#36 · Created  · Last updated

Merged pull request

Merged in jvanasco/dogpile.cache/feature-proxy_docs (pull request #36)

3a7c719·Author: ·Closed by: ·2015-10-06

Description

This tripped me up a year ago, so I decided to offer a docs update.

It's an example of using a base class to manage the core value-mangling functions, then implementing the proxy via a subclass that merely defines encode/decode. I also added a sidebar explaining some of the value caching behavior.

fwiw, serializing to msgpack -- despite being wrapped in a pickle dogpile -- is cutting our cache size in half.

0 attachments

0 comments

Loading commits...