def get_memcached(key):
 data = cache.get(key)
 if (not data):
  set_memcached(key, {})
 obj = cPickle.loads(cache.get(key))
 return obj

def get_memcached ( key ) : data = cache . get ( key ) if ( not data ) : set_memcached ( key , { } ) obj = cPickle . loads ( cache . get ( key ) ) return obj
return deserialize object from memcached .