serializing before caching

Jacques Marneweck jacques at powertrip.co.za
Wed Jan 24 20:05:11 UTC 2007


mark wrote:
> hi
> i am using python-memcached as the client. and i usually need to store 
> either  a list
> or dictionary. do i need to serialize the data before caching it?
> if i dont serialize and store the data, can the data hold a datetime 
> object?
> thanks a lot!
> mark
Hi Mark,

Take a look at pickle which comes with python.  Normally one makes a 
representation of the object when storing data.

Regards
--jm

-- 
Jacques Marneweck
http://www.powertrip.co.za/
http://www.powertrip.co.za/blog/

#include <std/disclaimer.h>




More information about the memcached mailing list