The version I released will de-serialize any of the supported formats without having to specify (or know) the format of the serialized data in the key, allowing for greater flexibility.
On Thu, Jul 23, 2009 at 5:26 PM, NICK VERBECK <[email protected]> wrote: > > I may be mis-understanding this or not seeing what problems you had > but doesn't the current python-memcached lib support changing of the > pickler class by simply changing the Client.pickler and > Client.unpickler variables to the class that you wish to use. By which > that class would operate like pickle itself does. > > > > On Thu, Jul 23, 2009 at 9:59 AM, Gavin M. Roy<[email protected]> wrote: > > > > I have created a fork of the python-memcached library to add support > > for other data serialization types. > > > > python-memcacheds supports de-serialization of Pickle, JSON and PHP > > serialization. It is based off of the current 1.44 version and > > should future versions be released, I will apply the changes to those > > subsequent releases. The primary goal of this is to be able to use > > memcached from multiple languages without regard to serialization. > > > > The current version of python-memcached will fail on data that has > > been serialized in PHP because the PHP PECL library sets the flag to > > the same value as the Python library. When the Python library goes to > > de-serialize the data, it will fail on PHP serialized data, expecting > > pickle serialized data and returning False. > > > > I have submitted a patch to the maintainer of python-memcached, should > > there be interest in applying these changes to the main library. > > > > python-memcacheds is available for download at: > > > > http://github.com/gmr/python-memcacheds/ > > > > Regards, > > > > Gavin > > > > > > -- > Nick Verbeck - NerdyNick > ---------------------------------------------------- > NerdyNick.com > SkeletalDesign.com > VivaLaOpenSource.com > Coloco.ubuntu-rocks.org >
