use memcached instead of redis + fix pickle issue by unesting classes