Update format fields to work with python2.6
Compress all data inserted into memcached to avoid memcached size limits
Merge pull request #8856 from sivel/memcached-factcache-improvements

Memcached factcache improvements