Feature custom_serializer

Declined
#42 · Created  · Last updated

Declined pull request

Rescinding, out of date.

Closed by: ·2016-07-06

Description

Second attempt at solving #18

This is simply the CachedSerializer support from the earlier PR.

Instead of calling compat.pickle operations, a backend declares a cached_serializer. By default, everything supporting serialization uses a Pickle serializer (which uses compat.pickle). Overriding a serializer is accomplished by passing in an instance that supports loads and dumps methods. Registration is modeled the same way as the wraps.

The memcached backend is untested. It uses a PassthroughCachedSerializer though a conditional 'dumps/loads' like the memory backend might be better.

0 attachments

0 comments

Loading commits...