Put memcache connection state to its own module.