By default Memcached module in PHP uses PHP\'s built in serialization functions. Because I\'m accesing the same keys from other programming languages, I have found a seriali
Just put your serialized data in a string and save it with memcache,
$memcache->add('your_key', str, false, 30);
If the serailization generates binary data. You should base64 encode it yourself because PHP's binary encoding is very in-efficient.